/* PrivacyScrubber Extension — Popup Styles */
/* Brand: dark #020617, neon-blue #3b82f6, neon-green #10b981 */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  width: 360px;
  min-height: 200px;
  background: #020617;
  color: #cbd5e1;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ── Header ── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #0f172a;
}

.logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 14px;
  color: #f1f5f9;
  letter-spacing: -0.02em;
}

.blue {
  color: #3b82f6;
}

.logo-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #3b82f6; 
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 6px;
  margin-left: 6px;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-counter.pop {
  animation: counterPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes counterPop {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  padding: 2px 8px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: ping 2s ease-in-out infinite;
}

@keyframes ping {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* ── Tabs ── */
.tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #0f172a;
}

.tab {
  flex: 1;
  padding: 8px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.tab.active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
}

.tab:hover:not(.active) {
  color: #94a3b8;
}

/* ── Panels ── */
.panel {
  padding: 12px 14px 14px;
}

.hidden {
  display: none !important;
}

/* ── Labels ── */
.label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}

.mt-8 {
  margin-top: 8px;
}

/* ── Textarea ── */
.textarea {
  width: 100%;
  height: 200px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 10px;
  color: #cbd5e1;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 11.5px;
  line-height: 1.55;
  resize: none;
  outline: none;
  transition: border-color 0.15s;
}

.textarea:focus {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.textarea::placeholder {
  color: #64748b;
}

.char-count {
  text-align: right;
  font-size: 10px;
  color: #334155;
  margin-top: 3px;
  font-family: monospace;
}

/* ── Buttons ── */
.btn-row {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 8px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 7px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
  background: #60a5fa;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.btn-success {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 7px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-success:hover {
  background: rgba(16, 185, 129, 0.2);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  color: #64748b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  padding: 7px 12px;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
}

.btn-ghost:hover {
  color: #cbd5e1;
}

/* ── Output ── */
.output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  margin-bottom: 5px;
}

.entity-badge {
  font-size: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10b981;
  border-radius: 999px;
  padding: 1px 8px;
}

.output-box {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 11px;
  line-height: 1.6;
  color: #94a3b8;
  max-height: 160px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Token highlights */
.output-box .t-NAME {
  color: #fbbf24;
  font-weight: 600;
}

.output-box .t-EMAIL {
  color: #60a5fa;
  font-weight: 600;
}

.output-box .t-PHONE {
  color: #34d399;
  font-weight: 600;
}

.output-box .t-ID {
  color: #f472b6;
  font-weight: 600;
}

.output-box .t-CUSTOM {
  color: #22d3ee;
  font-weight: 600;
}

.output-box .t-FINANCIAL {
  color: #f97316;
  font-weight: 600;
}

.output-box .t-SECRET {
  color: #a855f7;
  font-weight: 600;
}

/* ── Tag Animations (Staggered Wow Effect) ───────────── */
@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(2px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.tag-animate {
  opacity: 0;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ── Info box ── */
.info-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(59, 130, 246, 0.07);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 10px;
}

.info-box svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 11.5px;
  color: #94a3b8;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.toast.success {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

.toast.error {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
}

/* ── PRO Upsell Strip ── */
.pro-upsell-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 7px 10px;
  background: linear-gradient(90deg, rgba(139,92,246,0.08), rgba(59,130,246,0.06));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.pro-upsell-strip:hover {
  border-color: rgba(139, 92, 246, 0.45);
  background: linear-gradient(90deg, rgba(139,92,246,0.14), rgba(59,130,246,0.10));
}

.pro-badge {
  font-size: 9px;
  font-weight: 800;
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 4px;
  padding: 1px 5px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.pro-upsell-text {
  font-size: 10.5px;
  color: #64748b;
  flex: 1;
}

.pro-upsell-cta {
  font-size: 10.5px;
  font-weight: 700;
  color: #8b5cf6;
  flex-shrink: 0;
}

/* ── Quick Links Footer ── */
.quick-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #020617;
  margin-top: 5px;
}

.quick-links .btn-ghost {
  font-size: 10.5px;
  padding: 5px 8px;
  border-radius: 5px;
}

/* ── Profile Pills ── */
.profile-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748b;
  font-size: 9.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.profile-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.profile-pill.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #3b82f6;
}

/* ── Secure Export Hub ── */
.export-hub {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}