/* ═══════════════════════════════════════════════════
   NORMASHIELD - SHARED ACQUISITION STYLES
   Used by admin.html (operator.html uses operator.css)
   ════════════════════════════════════════════════════ */

/* Extra CSS variables not present in admin.css */
:root {
  --primary: #10b981;
  --accent:  #06b6d4;
}

/* ════════ ACQUISITION TYPE CARDS ════════ */
.acq-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.acq-type-card {
  display: flex; align-items: flex-start; gap: 1.1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.5rem;
  text-align: left; color: var(--text);
  cursor: pointer; font-family: var(--font);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  position: relative; overflow: hidden;
}
.acq-type-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  opacity: 0; transition: opacity 0.2s;
}
.acq-type-card:hover { transform: translateY(-3px); }

.acq-type-url::before   { background: linear-gradient(90deg, #06b6d4, #3b82f6); }
.acq-type-photo::before { background: linear-gradient(90deg, #10b981, #059669); }
.acq-type-file::before  { background: linear-gradient(90deg, #f59e0b, #d97706); }
.acq-type-onion::before  { background: linear-gradient(90deg, #8b5cf6, #6d28d9); }
.acq-type-social::before { background: linear-gradient(90deg, #ec4899, #be185d); }
.acq-type-email::before  { background: linear-gradient(90deg, #0d7a8a, #14b8c8); }
.acq-type-ai::before     { background: linear-gradient(90deg, #6366f1, #818cf8); }
.acq-type-log::before    { background: linear-gradient(90deg, #ea580c, #f97316); }

.acq-type-url:hover   { border-color: rgba(6,182,212,0.4);  background: rgba(6,182,212,0.04); }
.acq-type-photo:hover { border-color: rgba(16,185,129,0.4); background: rgba(16,185,129,0.04); }
.acq-type-file:hover  { border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.04); }
.acq-type-onion:hover  { border-color: rgba(139,92,246,0.4); background: rgba(139,92,246,0.04); }
.acq-type-social:hover { border-color: rgba(236,72,153,0.4); background: rgba(236,72,153,0.04); }
.acq-type-email:hover  { border-color: rgba(20,184,200,0.4); background: rgba(20,184,200,0.04); }
.acq-type-ai:hover     { border-color: rgba(99,102,241,0.4); background: rgba(99,102,241,0.04); }
.acq-type-log:hover    { border-color: rgba(234,88,12,0.4);  background: rgba(234,88,12,0.04);  }

.acq-type-url:hover::before,
.acq-type-photo:hover::before,
.acq-type-file:hover::before,
.acq-type-onion:hover::before,
.acq-type-social:hover::before,
.acq-type-email:hover::before,
.acq-type-ai:hover::before,
.acq-type-log:hover::before { opacity: 1; }

.acq-type-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.acq-type-icon svg { width: 24px; height: 24px; }

.acq-type-url   .acq-type-icon { background: rgba(6,182,212,0.12);  color: #22d3ee; }
.acq-type-photo .acq-type-icon { background: rgba(16,185,129,0.12); color: #34d399; }
.acq-type-file  .acq-type-icon { background: rgba(245,158,11,0.12); color: #fbbf24; }
.acq-type-onion  .acq-type-icon { background: rgba(139,92,246,0.12); color: #a78bfa; }
.acq-type-social .acq-type-icon { background: rgba(236,72,153,0.12); color: #f472b6; }
.acq-type-email  .acq-type-icon { background: rgba(20,184,200,0.12); color: #14b8c8; }
.acq-type-ai     .acq-type-icon { background: rgba(99,102,241,0.12); color: #a5b4fc; }
.acq-type-log    .acq-type-icon { background: rgba(234,88,12,0.12);  color: #fdba74; }

.acq-type-body { flex: 1; min-width: 0; }
.acq-type-num  { font-size: 0.68rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.3rem; }
.acq-type-title { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.acq-type-desc  { font-size: 0.82rem; color: var(--muted2); line-height: 1.55; margin-bottom: 0.85rem; }
.acq-type-tags  { display: flex; flex-wrap: wrap; gap: 6px; }
.acq-type-tags span {
  font-size: 0.71rem; font-weight: 600; padding: 2px 8px; border-radius: 4px;
  background: rgba(255,255,255,0.06); color: var(--muted2); border: 1px solid var(--border);
}
.acq-type-arrow { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; margin-top: 4px; }
.acq-type-arrow svg { width: 20px; height: 20px; }

/* ════════ ACQUISITION MODAL ════════ */
.acq-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.acq-overlay.open { opacity: 1; pointer-events: all; }

.acq-modal {
  position: relative;
  background: #0d1622; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 2.5rem;
  width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto;
  transform: translateY(20px); transition: transform 0.25s;
}
.acq-overlay.open .acq-modal { transform: translateY(0); }
.acq-modal.modal-wide { max-width: 1040px; }

.acq-modal-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; font-family: var(--font);
}
.acq-modal-close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.acq-modal-close svg { width: 16px; height: 16px; }

/* ════════ MODAL FORM STYLES ════════ */
.modal-title    { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 0.4rem; }
.modal-subtitle { font-size: 0.88rem; color: var(--muted); margin-bottom: 2rem; }

.form-group { margin-bottom: 1.25rem; }
.case-form-block {
  margin-bottom: 1.4rem; padding: 1rem 1rem 0.15rem;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 14px;
  background: rgba(255,255,255,0.03);
}
.case-form-header { margin-bottom: 0.9rem; }
.case-form-title  { margin: 0 0 0.3rem; font-size: 0.9rem; font-weight: 700; color: #fff; }
.case-form-subtitle { margin: 0; font-size: 0.8rem; color: var(--muted); line-height: 1.55; }
.case-form-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}
.case-form-full { grid-column: 1 / -1; }

.form-label {
  display: block; font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); margin-bottom: 0.5rem;
}
.form-input {
  width: 100%; padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; color: #fff; font-family: var(--font); font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-input:focus {
  border-color: rgba(16,185,129,0.5);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.1);
}
.form-input::placeholder { color: rgba(136,146,164,0.5); }
.form-textarea { min-height: 92px; resize: vertical; line-height: 1.55; }

/* modal buttons */
.acq-modal .btn-primary {
  width: 100%; padding: 0.9rem; border-radius: 12px; border: none; cursor: pointer;
  font-size: 1rem; font-weight: 700; color: #fff;
  transition: opacity 0.2s, transform 0.1s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font);
}
.acq-modal .btn-primary:hover { opacity: 0.9; }
.acq-modal .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.acq-modal .btn-blue   { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.acq-modal .btn-green  { background: linear-gradient(135deg, #10b981, #059669); }
.acq-modal .btn-amber  { background: linear-gradient(135deg, #f59e0b, #d97706); }
.acq-modal .btn-onion  { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.acq-modal .btn-social { background: linear-gradient(135deg, #ec4899, #be185d); }

/* ════════ PROGRESS BAR ════════ */
.progress-wrap {
  display: none; margin-top: 1.5rem;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px; padding: 1.25rem;
}
.progress-label {
  font-size: 0.82rem; color: var(--muted); margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 8px;
}
.progress-bar-track {
  height: 4px; background: rgba(255,255,255,0.05); border-radius: 2px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.4s ease; width: 0%;
}
.spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(16,185,129,0.2); border-top-color: var(--primary);
  border-radius: 50%; animation: acq-spin 0.8s linear infinite; display: inline-block;
}
@keyframes acq-spin { to { transform: rotate(360deg); } }

/* ════════ RESULT BOX ════════ */
.result-box {
  display: none; margin-top: 1.5rem;
  background: rgba(16,185,129,0.05); border: 1px solid rgba(16,185,129,0.2);
  border-radius: 12px; padding: 1.5rem;
}
.result-box.error {
  background: rgba(239,68,68,0.05); border-color: rgba(239,68,68,0.2);
}
.result-title {
  font-size: 0.9rem; font-weight: 700; color: #6ee7b7; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 6px;
}
.result-box.error .result-title { color: #fca5a5; }
.result-download {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 1rem; padding: 0.6rem 1.25rem;
  background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3);
  border-radius: 8px; color: #6ee7b7; font-size: 0.85rem; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
}
.result-download:hover { background: rgba(16,185,129,0.25); }
.result-download svg { width: 15px; height: 15px; }
.result-primary-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.result-primary-actions .result-download { margin-top: 0; }
.result-download-secondary {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
  color: #e5e7eb;
}
.result-download-secondary:hover { background: rgba(255,255,255,0.1); }

/* ════════ URL RESULT SECTIONS ════════ */
.url-result-section { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,0.08); }
.url-result-section:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.url-section-title { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 0.9rem; }
.url-section-note  { margin-top: 0.85rem; color: var(--muted); font-size: 0.82rem; line-height: 1.7; }

.url-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.url-summary-card {
  display: flex; flex-direction: column; gap: 0.28rem;
  padding: 0.95rem 1rem; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03);
}
.url-summary-card-wide { grid-column: 1 / -1; }
.url-card-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.url-card-value { color: #fff; font-size: 0.86rem; font-family: var(--mono); word-break: break-word; }

.url-preview-shell { border-radius: 16px; overflow: hidden; border: 1px solid rgba(59,130,246,0.18); background: rgba(255,255,255,0.03); }
.url-preview-image { display: block; width: 100%; height: auto; }

.url-inline-links, .url-result-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.url-inline-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.55rem 0.95rem; border-radius: 999px;
  border: 1px solid rgba(59,130,246,0.22); background: rgba(59,130,246,0.08);
  color: #bfdbfe; text-decoration: none; font-size: 0.82rem; font-weight: 600;
  transition: all 0.2s;
}
.url-inline-link:hover { color: #fff; border-color: rgba(59,130,246,0.4); background: rgba(59,130,246,0.16); }
.url-inline-link-strong { border-color: rgba(16,185,129,0.26); background: rgba(16,185,129,0.1); color: #86efac; }
.url-inline-link-strong:hover { border-color: rgba(16,185,129,0.4); background: rgba(16,185,129,0.18); }

.url-table-wrap {
  overflow-x: auto; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; background: rgba(255,255,255,0.02);
}
.url-data-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.url-data-table th, .url-data-table td {
  padding: 0.75rem 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: left; vertical-align: top;
}
.url-data-table tr:last-child td { border-bottom: none; }
.url-data-table th { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.url-data-table td { color: #fff; font-size: 0.8rem; }

.url-host-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.url-host-card { padding: 0.95rem 1rem; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); }
.url-host-topline { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.4rem; }
.url-host-name  { color: #fff; font-size: 0.86rem; font-weight: 700; word-break: break-all; }
.url-host-badge { flex-shrink: 0; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.68rem; font-weight: 700; color: #93c5fd; background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.16); }
.url-host-meta  { color: var(--muted); font-size: 0.79rem; line-height: 1.65; }
.url-file-link  { color: #bfdbfe; text-decoration: none; }
.url-file-link:hover { color: #fff; text-decoration: underline; }

/* ════════ CAMERA ════════ */
#cameraPreview {
  width: 100%; border-radius: 12px; overflow: hidden;
  background: #000; aspect-ratio: 16/9; display: none; margin-bottom: 1rem;
}
#cameraPreview video { width: 100%; height: 100%; object-fit: cover; }
#capturedCanvas { display: none; width: 100%; border-radius: 12px; margin-bottom: 1rem; }

/* ════════ DROP ZONE ════════ */
.drop-zone {
  border: 2px dashed rgba(255,255,255,0.12); border-radius: 12px;
  padding: 2.5rem; text-align: center; cursor: pointer;
  transition: all 0.2s; margin-bottom: 1.25rem;
}
.drop-zone:hover, .drop-zone.dragover { border-color: rgba(245,158,11,0.5); background: rgba(245,158,11,0.03); }
.drop-zone svg { width: 40px; height: 40px; color: var(--muted); margin-bottom: 0.75rem; }
.drop-zone p { color: var(--muted); font-size: 0.88rem; }
.drop-zone p strong { color: #fff; }
.drop-zone .file-selected { color: var(--amber); font-weight: 600; margin-top: 0.5rem; font-size: 0.85rem; }
#fileInput { display: none; }

/* ════════ SOCIAL ACQUISITION STEPS ════════ */
.social-step-card {
  display: flex; gap: .85rem; align-items: flex-start;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: .9rem 1rem; margin-bottom: 1rem;
}
.social-step-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg,#ec4899,#be185d); color: #fff;
  font-size: .78rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.social-step-body { flex: 1; min-width: 0; }
.social-step-title { font-size: .88rem; font-weight: 700; color: #fff; margin-bottom: .3rem; }
.social-step-desc { font-size: .8rem; color: var(--muted2); line-height: 1.55; }
.btn-social-open {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(236,72,153,.15); border: 1px solid rgba(236,72,153,.35);
  color: #f9a8d4; border-radius: 8px; padding: 7px 12px;
  font-size: .8rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: all .2s;
}
.btn-social-open:hover:not(:disabled) { background: rgba(236,72,153,.28); }
.btn-social-open:disabled { opacity: .4; cursor: not-allowed; }
.btn-relay-check {
  margin-top: .6rem; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  color: var(--muted2); border-radius: 8px; padding: 6px 12px;
  font-size: .8rem; font-weight: 600; cursor: pointer;
  transition: all .2s;
}
.btn-relay-check:hover:not(:disabled) { background: rgba(255,255,255,.1); color: #fff; }
.btn-relay-check:disabled { opacity: .5; cursor: not-allowed; }

/* ── Social interactive browser session ─────────────────────────────── */
.social-browser-bar {
  display: flex; align-items: center; gap: .4rem;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.1);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: .4rem .6rem;
}
.social-browser-indicator { width: 18px; display: flex; align-items: center; justify-content: center; }
.social-browser-address {
  flex: 1; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 5px; color: var(--text);
  font-size: .78rem; padding: .3rem .6rem; outline: none;
}
.social-browser-address:focus { border-color: rgba(236,72,153,.5); }
.social-browser-go {
  background: rgba(236,72,153,.15); border: 1px solid rgba(236,72,153,.35);
  color: #f9a8d4; border-radius: 5px; font-size: .75rem;
  padding: .3rem .7rem; cursor: pointer; white-space: nowrap;
  transition: background .2s;
}
.social-browser-go:hover { background: rgba(236,72,153,.28); }
.social-browser-viewport {
  position: relative; width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,.1);
  border-top: none;
  overflow: hidden;
}
.social-browser-spinner-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,.6); z-index: 3;
}
.social-browser-keyboard {
  display: flex; gap: .4rem; align-items: center; flex-wrap: wrap;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.08);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: .45rem .6rem;
}
.social-browser-keyboard input {
  flex: 1; min-width: 120px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 5px; color: var(--text);
  font-size: .78rem; padding: .3rem .6rem; outline: none;
}
.social-browser-keyboard input:focus { border-color: rgba(236,72,153,.4); }
.social-kb-btn {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--muted2); border-radius: 5px;
  font-size: .75rem; padding: .3rem .55rem;
  cursor: pointer; white-space: nowrap; transition: all .15s;
}
.social-kb-btn:hover { background: rgba(255,255,255,.14); color: var(--text); }
.btn-capture-session {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  margin-top: .75rem; width: 100%;
  background: linear-gradient(135deg, rgba(236,72,153,.18), rgba(190,24,93,.18));
  border: 1px solid rgba(236,72,153,.4);
  color: #f9a8d4; border-radius: 8px;
  font-size: .85rem; font-weight: 600;
  padding: .65rem 1.2rem; cursor: pointer; transition: all .2s;
}
.btn-capture-session:hover { background: linear-gradient(135deg,rgba(236,72,153,.3),rgba(190,24,93,.3)); border-color: rgba(236,72,153,.65); }
.btn-capture-session:disabled { opacity: .5; cursor: not-allowed; }
@keyframes social-click-ripple {
  from { transform: scale(1); opacity: .8; }
  to   { transform: scale(3.5); opacity: 0; }
}
