/* ═══════════════════════════════════════════════════
   TaxGuide 2025 — Privacy Vault Styles
   ═══════════════════════════════════════════════════ */

/* ── Trust Banner ──────────────────────────────── */
.pv-banner {
  background: linear-gradient(135deg, #0c1a0e 0%, #0a1628 50%, #0c1a0e 100%);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.pv-banner::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(34,197,94,0.06), transparent);
  animation: pvSweep 4s ease-in-out infinite;
}

@keyframes pvSweep {
  0% { left: -50%; }
  100% { left: 150%; }
}

.pv-banner-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.pv-shield {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: rgba(34, 197, 94, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pvPulse 3s ease-in-out infinite;
}

@keyframes pvPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.3); }
  50% { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
}

.pv-shield-icon {
  width: 24px; height: 24px;
  color: #22c55e;
}

.pv-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pv-banner-text strong {
  color: #22c55e;
  font-size: 0.95rem;
}

.pv-banner-text span {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
}

.pv-vault-btn {
  flex-shrink: 0;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
  color: #22c55e;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pv-vault-btn:hover {
  background: rgba(34,197,94,0.2);
  border-color: #22c55e;
  transform: translateY(-1px);
}

/* ── Floating Save Indicator ───────────────────── */
.pv-indicator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(10, 22, 40, 0.95);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1000;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.pv-indicator.flash {
  border-color: #22c55e;
  box-shadow: 0 0 20px rgba(34,197,94,0.3);
}

.pv-indicator.flash .pv-ind-icon {
  color: #22c55e;
}

.pv-indicator.flash .pv-ind-text {
  color: #22c55e;
}

.pv-indicator.purge-flash {
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239,68,68,0.3);
}

.pv-ind-icon {
  width: 14px; height: 14px;
  color: rgba(255,255,255,0.3);
  transition: color 0.3s;
}

.pv-ind-text {
  transition: color 0.3s;
}

.pv-ind-count {
  color: rgba(255,255,255,0.3);
  font-size: 0.72rem;
  padding-left: 6px;
  border-left: 1px solid rgba(255,255,255,0.1);
}

/* ── Vault Panel ───────────────────────────────── */
.pv-vault {
  position: fixed;
  top: 0; right: -460px;
  width: 440px;
  height: 100vh;
  background: rgba(6, 10, 16, 0.98);
  border-left: 1px solid rgba(34,197,94,0.2);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
}

.pv-vault.open {
  right: 0;
}

.pv-vault.purging {
  animation: pvShake 0.4s ease-in-out;
}

@keyframes pvShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.pv-vault-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(34,197,94,0.15);
}

.pv-vault-header h3 {
  margin: 0;
  font-size: 1rem;
  color: #22c55e;
}

.pv-vault-close {
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  width: 28px; height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.pv-vault-close:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.pv-vault-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* ── Proof Cards ───────────────────────────────── */
.pv-proof-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.pv-proof {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.pv-proof-icon {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.pv-proof-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.pv-proof-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

.pv-green { color: #22c55e !important; }

/* ── Live Data View ────────────────────────────── */
.pv-live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pv-live-dot {
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pvBlink 2s ease infinite;
}

@keyframes pvBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.pv-live-data {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 8px;
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

.pv-data-row {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
  gap: 8px;
}

.pv-data-row:hover {
  background: rgba(255,255,255,0.04);
}

.pv-data-row.pv-redacted {
  background: rgba(239,68,68,0.06);
  border-left: 2px solid rgba(239,68,68,0.3);
}

.pv-data-key {
  color: #8b5cf6;
  flex-shrink: 0;
  min-width: 120px;
}

.pv-data-val {
  color: rgba(255,255,255,0.7);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv-masked { color: rgba(255,255,255,0.3); letter-spacing: 2px; }
.pv-array { color: #3b82f6; }
.pv-obj { color: #f59e0b; }
.pv-empty { color: rgba(255,255,255,0.2); }
.pv-str { color: #22c55e; }

.pv-redact-badge {
  font-size: 0.6rem;
  background: rgba(239,68,68,0.15);
  color: #ef4444;
  padding: 1px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}

.pv-data-empty {
  color: rgba(255,255,255,0.3);
  text-align: center;
  padding: 20px;
  font-style: italic;
}

/* ── Vault Actions ─────────────────────────────── */
.pv-vault-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.pv-action-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.pv-action-export {
  background: rgba(59,130,246,0.1);
  border-color: rgba(59,130,246,0.3);
  color: #3b82f6;
}

.pv-action-export:hover {
  background: rgba(59,130,246,0.2);
}

.pv-action-delete {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.3);
  color: #ef4444;
}

.pv-action-delete:hover {
  background: rgba(239,68,68,0.2);
}

.pv-tech-note {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.5;
  padding: 10px;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  border: 1px dashed rgba(255,255,255,0.08);
}

.pv-tech-note code {
  background: rgba(139,92,246,0.15);
  color: #8b5cf6;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
}

/* ── Mobile ────────────────────────────────────── */
@media (max-width: 600px) {
  .pv-banner-inner {
    flex-wrap: wrap;
    gap: 10px;
  }
  .pv-vault-btn {
    width: 100%;
    justify-content: center;
  }
  .pv-vault {
    width: 100%;
    right: -100%;
  }
  .pv-proof-cards {
    grid-template-columns: 1fr;
  }
  .pv-indicator {
    bottom: 8px;
    right: 8px;
    font-size: 0.72rem;
    padding: 6px 10px;
  }
  .pv-vault-actions {
    flex-direction: column;
  }
}
