/* === AMITY NASHER POWER TACTICS ===
   3-Pfeiler-Teleprompter: Birkenbihl (A/gruen) | Harvard (B/blau) | Nasher (C/gold)
   Anker-Alert-Karte (gold/rot)
   Reziprozitaets-Karte + Modal (indigo)
*/

/* ─── 3-Tab-Layout ──────────────────────────────────────────── */
.forensic-dialog-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}

.dialog-tab {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-transform: uppercase;
  line-height: 1.2;
}

.dialog-tab:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
}

.dialog-tab:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(0.6);
}

/* Aktive Tabs mit Akzentfarben */
.dialog-tab.active.dialog-tab-coop {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
}

.dialog-tab.active.dialog-tab-int {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.25);
}

.dialog-tab.active.dialog-tab-pow {
  background: rgba(212, 175, 55, 0.22);
  color: #ffd966;
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.32);
}

/* Content-Panes */
.forensic-dialog-content {
  position: relative;
  min-height: 40px;
}

.dialog-pane {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  border-left: 3px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dialog-pane.hidden {
  display: none;
}

.dialog-pane-coop {
  border-left-color: #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.02));
}

.dialog-pane-int {
  border-left-color: #3b82f6;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.02));
}

.dialog-pane-pow {
  border-left-color: #d4af37;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.10), rgba(212, 175, 55, 0.02));
  color: #fef3c7;
}

.dialog-pane-empty {
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  font-size: 12px;
}

/* ─── Anker-Alert-Karte ─────────────────────────────────────── */
.forensic-anchor {
  border: 2px solid rgba(212, 175, 55, 0.6) !important;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(184, 134, 11, 0.05)) !important;
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.25) !important;
  padding: 14px 16px !important;
}

.forensic-anchor .anchor-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffd966;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.forensic-anchor .anchor-icon {
  font-size: 1.1rem;
}

.forensic-anchor .anchor-platform {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.7);
}

.forensic-anchor .anchor-detected {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
  line-height: 1.4;
}

.forensic-anchor .anchor-detected mark {
  background: rgba(212, 175, 55, 0.35);
  color: #fff8dc;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 700;
}

.forensic-anchor .anchor-counter {
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  border-left: 3px solid #ffd966;
  font-weight: 600;
  font-size: 14px;
  color: #fff8dc;
  margin: 10px 0 8px;
}

.forensic-anchor .anchor-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffd966;
  display: block;
  text-align: center;
  margin: 6px 0;
  text-shadow: 0 2px 12px rgba(212, 175, 55, 0.4);
}

.forensic-anchor .anchor-rationale {
  font-size: 11px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

/* ─── Reziprozitaets-Karte ──────────────────────────────────── */
.forensic-reciprocity {
  border: 2px solid rgba(99, 102, 241, 0.5) !important;
  background: rgba(99, 102, 241, 0.08) !important;
  box-shadow: 0 4px 22px rgba(99, 102, 241, 0.2) !important;
  padding: 14px 16px !important;
}

.forensic-reciprocity .reciprocity-header {
  color: #a5b4fc;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.forensic-reciprocity .reciprocity-wenn-dann {
  font-size: 15px;
  line-height: 1.5;
  color: #fff;
  font-weight: 600;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  border-left: 3px solid #818cf8;
}

.forensic-reciprocity .reciprocity-meta {
  margin-top: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  gap: 12px;
}

.forensic-reciprocity .reciprocity-meta span strong {
  color: rgba(165, 180, 252, 0.95);
}

/* ─── Reziprozitaets-Modal ──────────────────────────────────── */
.reciprocity-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reciprocity-modal {
  background: rgba(24, 24, 32, 0.92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 18px;
  padding: 26px 28px;
  max-width: 480px;
  width: 94%;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(99, 102, 241, 0.15);
}

.reciprocity-modal h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: #a5b4fc;
  letter-spacing: 0.02em;
}

.reciprocity-modal .reciprocity-subtitle {
  margin: 0 0 18px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.reciprocity-modal label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  margin: 12px 0 6px;
  font-weight: 700;
}

.reciprocity-modal input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 13.5px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.reciprocity-modal input[type="text"]:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.reciprocity-templates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.reciprocity-template-btn {
  padding: 5px 10px;
  border-radius: 14px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.1);
  color: #c7d2fe;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.reciprocity-template-btn:hover {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(99, 102, 241, 0.6);
}

.reciprocity-modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}

.reciprocity-btn-close {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
  font-family: inherit;
}

.reciprocity-btn-generate {
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #6366f1, #4338ca);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

.reciprocity-btn-generate:hover {
  filter: brightness(1.1);
}

.reciprocity-btn-generate:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ─── Floating Reciprocity Button im Cockpit ────────────────── */
#nasher-reciprocity-btn {
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.15);
  color: #c7d2fe;
  font-size: 14px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  transition: all 0.2s;
}

#nasher-reciprocity-btn:hover {
  background: rgba(99, 102, 241, 0.3);
  transform: scale(1.05);
}
