/* Tokens scopés pour la popup phone Watcher */
.fv-popup-stage {
  --primary: #09b1ba;
  --primary-dark: #078e95;
  --primary-light: #0dd1db;
  --primary-glow: rgba(9,177,186,0.28);
  --bg-dark: #0f1117;
  --bg-card: #1a1d27;
  --bg-card-hover: #222636;
  --bg-elevated: #252a38;
  --text-primary: #f0f2f5;
  --text-secondary: #8b92a5;
  --text-muted: #5a6178;
  --success: #2dd4a8;
  --success-bg: rgba(45,212,168,0.12);
  --error: #f04770;
  --error-bg: rgba(240,71,112,0.12);
  --warning: #cbd0d8;
  --warning-bg: rgba(203,208,216,0.12);
  --border: rgba(255,255,255,0.07);
  --border-subtle: rgba(255,255,255,0.04);
  --radius: 10px;
  --radius-sm: 8px;
  --radius-lg: 14px;
  --transition: 0.18s cubic-bezier(0.4,0,0.2,1);
  --app-w: 460px;
  /* Wrapper layout */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.fv-popup-stage * { box-sizing: border-box; }
/* Override: dans le mockup home (.hero-mock), retire le wrapper layout pour s'aligner avec popup repost */
.hero-mock .fv-popup-stage { display: block; padding: 0; gap: 0; min-height: 0; }
.hero-mock .fv-popup-stage .app { height: 600px; max-width: 460px; margin: 0 auto; }
.fv-popup-stage .app {
  width: var(--app-w);
  max-width: 100%;
  height: 640px;
  display: flex;
  flex-direction: column;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255,255,255,0.02);
}
.fv-popup-stage .header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border-bottom: 1px solid var(--border);
  flex: none;
}
.fv-popup-stage .logo {
  display: grid;
  place-items: center;
  width: 36px; height: 36px; flex: none;
  color: #fff;
  background: linear-gradient(145deg, var(--primary-light) 0%, var(--primary) 55%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  box-shadow: 0 4px 14px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}
.fv-popup-stage .brand h1 {
  font-size: 14.5px; font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.fv-popup-stage .brand p { margin-top: 2px; font-size: 10.5px; font-weight: 600; color: var(--text-secondary); }
.fv-popup-stage .header-spacer { margin-left: auto; }
.fv-popup-stage .header-actions { display: flex; align-items: center; gap: 6px; }
.fv-popup-stage .status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px 4px 8px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-secondary);
  max-width: 145px;
}
.fv-popup-stage .status-pill .status-pill-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fv-popup-stage .status-pill .dot {
  width: 7px; height: 7px; flex: none;
  border-radius: 50%;
  background: var(--text-muted);
  box-shadow: 0 0 0 0 transparent;
  transition: var(--transition);
}
.fv-popup-stage .status-pill .dot[data-state="on"] {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(45,212,168,0.18);
  animation: pulseDot 1.6s ease-in-out infinite;
}
.fv-popup-stage .status-pill .dot[data-state="err"] {
  background: var(--error);
  box-shadow: 0 0 0 3px rgba(240,71,112,0.18);
}
.fv-popup-stage .status-pill:has(.dot[data-state="on"]) { color: var(--success); border-color: rgba(45,212,168,0.25); background: rgba(45,212,168,0.08); }
.fv-popup-stage .status-pill:has(.dot[data-state="err"]) { color: var(--error); border-color: rgba(240,71,112,0.25); background: rgba(240,71,112,0.08); }
@keyframes pulseDot {0%, 100% { box-shadow: 0 0 0 0 rgba(45,212,168,0.4); }
50% { box-shadow: 0 0 0 5px rgba(45,212,168,0); }
}
.fv-popup-stage .pending-pill {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--warning-bg);
  border: 1px solid rgba(255,181,71,0.25);
  color: var(--warning);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}
.fv-popup-stage .lang-sel {
  height: 26px;
  padding: 0 22px 0 9px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%238b92a5' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 7px center,
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  outline: 0;
  appearance: none;
}
.fv-popup-stage .lang-sel:hover { color: var(--text-primary); }
.fv-popup-stage .tabbar {
  display: flex;
  gap: 2px;
  padding: 6px 8px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  flex: none;
}
.fv-popup-stage .tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 4px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 700;
  transition: var(--transition);
}
.fv-popup-stage .tab-btn svg { width: 14px; height: 14px; flex: none; }
.fv-popup-stage .tab-btn:hover { color: var(--text-secondary); background: rgba(255,255,255,0.03); }
.fv-popup-stage .tab-btn.active {
  color: var(--primary-light);
  background: rgba(9, 177, 186, 0.1);
}
.fv-popup-stage .panel {
  flex: 1;
  min-height: 0;
  display: none;
  flex-direction: column;
}
.fv-popup-stage .panel.active { display: flex; }
.fv-popup-stage .scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fv-popup-stage .scroll > * { min-width: 0; }
.fv-popup-stage .scroll::-webkit-scrollbar { width: 5px; }
.fv-popup-stage .scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }
.fv-popup-stage .scroll::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); }
.fv-popup-stage .run-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.fv-popup-stage .run-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  color: #04222a;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: var(--transition);
  border-bottom: 1px solid rgba(0,0,0,0.15);
}
.fv-popup-stage .run-btn:hover { filter: brightness(1.06); }
.fv-popup-stage .run-btn .run-ico { width: 18px; height: 18px; flex: none; }
.fv-popup-stage .run-btn .run-ico-stop { display: none; }
.fv-popup-stage .run-btn[data-running="true"] {
  color: #fff;
  background: linear-gradient(135deg, #f04770, #c8345a);
}
.fv-popup-stage .run-btn[data-running="true"] .run-ico-play { display: none; }
.fv-popup-stage .run-btn[data-running="true"] .run-ico-stop { display: block; }
.fv-popup-stage .fresh-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
}
.fv-popup-stage .fresh-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 600;
  flex: 1;
}
.fv-popup-stage .fresh-inputs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fv-popup-stage .fresh-row input[type="number"] {
  width: 52px;
  padding: 5px 7px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: center;
  outline: 0;
}
.fv-popup-stage .fresh-row select {
  padding: 5px 22px 5px 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%238b92a5' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 7px center,
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: 0;
  appearance: none;
}
.fv-popup-stage .fresh-row input[type="number"]:focus, .fv-popup-stage .fresh-row select:focus {
  border-color: rgba(9,177,186,0.45);
  box-shadow: 0 0 0 3px rgba(9,177,186,0.08);
}
.fv-popup-stage .fresh-toggle {
  position: relative;
  width: 34px; height: 20px;
  flex: none;
}
.fv-popup-stage .fresh-toggle input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.fv-popup-stage .fresh-track {
  position: absolute; inset: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: var(--transition);
}
.fv-popup-stage .fresh-track::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--text-secondary);
  transition: var(--transition);
}
.fv-popup-stage .fresh-toggle input:checked + .fresh-track {
  background: rgba(9,177,186,0.25);
  border-color: rgba(9,177,186,0.4);
}
.fv-popup-stage .fresh-toggle input:checked + .fresh-track::after {
  left: 16px;
  background: var(--primary-light);
}
.fv-popup-stage .sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 2px 0;
}
.fv-popup-stage .sec-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.fv-popup-stage .ghost-btn {
  padding: 5px 9px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.fv-popup-stage .ghost-btn:hover { color: var(--text-primary); background: var(--bg-card-hover); }
.fv-popup-stage .catchlog {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fv-popup-stage .catchlog:empty { display: none; }
.fv-popup-stage .catchlog-demo {
  opacity: 0.95;
}
.fv-popup-stage .catch-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
.fv-popup-stage .catch-card:hover {
  border-color: rgba(9,177,186,0.3);
  background: var(--bg-card-hover);
}
.fv-popup-stage .catch-thumb {
  width: 44px; height: 44px;
  flex: none;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, #2a2f40, #1e2230);
  position: relative;
  overflow: hidden;
}
.fv-popup-stage .catch-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 35%, rgba(9,177,186,0.35), transparent 60%),
    radial-gradient(circle at 75% 75%, rgba(255,181,71,0.18), transparent 55%);
}
.fv-popup-stage .catch-thumb.thumb-b::after {
  background:
    radial-gradient(circle at 30% 35%, rgba(240,71,112,0.32), transparent 60%),
    radial-gradient(circle at 70% 65%, rgba(13,209,219,0.22), transparent 55%);
}
.fv-popup-stage .catch-main { flex: 1; min-width: 0; }
.fv-popup-stage .catch-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fv-popup-stage .catch-meta {
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}
.fv-popup-stage .catch-price {
  color: var(--primary-light);
  font-weight: 800;
}
.fv-popup-stage .catch-sep { color: var(--text-muted); opacity: 0.5; }
.fv-popup-stage .catch-deal {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--success-bg);
  color: var(--success);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.01em;
}
.fv-popup-stage .catch-go { flex: none; color: var(--text-muted); }
.fv-popup-stage .catch-card:hover .catch-go { color: var(--primary-light); }
.fv-popup-stage .empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 12px;
}
.fv-popup-stage .empty .empty-ico {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
}
.fv-popup-stage .catchlog:not(:empty) ~ #catchlog-empty { display: none; }
.fv-popup-stage .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.fv-popup-stage .field > label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}
.fv-popup-stage .field > label .hint, .fv-popup-stage .hint {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0;
}
.fv-popup-stage .field input[type="text"], .fv-popup-stage .field input[type="url"], .fv-popup-stage .field input[type="number"], .fv-popup-stage .field select {
  width: 100%;
  padding: 9px 11px;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  outline: 0;
  transition: var(--transition);
}
.fv-popup-stage .field select {
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%238b92a5' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 11px center;
}
.fv-popup-stage .field input::placeholder { color: var(--text-muted); }
.fv-popup-stage .field input:focus, .fv-popup-stage .field select:focus {
  border-color: rgba(9,177,186,0.45);
  box-shadow: 0 0 0 3px rgba(9,177,186,0.08);
}
.fv-popup-stage .field input[type="number"]::-webkit-outer-spin-button, .fv-popup-stage .field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fv-popup-stage .field input[type="number"] { -moz-appearance: textfield; }
.fv-popup-stage .input-search {
  position: relative;
}
.fv-popup-stage .input-search svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  color: var(--text-muted);
  pointer-events: none;
}
.fv-popup-stage .input-search input {
  width: 100%;
  padding: 9px 12px 9px 32px;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  outline: 0;
  transition: var(--transition);
}
.fv-popup-stage .input-search input:focus {
  border-color: rgba(9,177,186,0.45);
  box-shadow: 0 0 0 3px rgba(9,177,186,0.08);
}
.fv-popup-stage .input-search input::placeholder { color: var(--text-muted); }
.fv-popup-stage .grid { display: grid; gap: 10px; min-width: 0; }
.fv-popup-stage .grid-2 { grid-template-columns: 1fr 1fr; }
.fv-popup-stage .grid-1-2 { grid-template-columns: 80px 1fr; }
.fv-popup-stage .grid > .field { min-width: 0; }
.fv-popup-stage .cat-picker { position: relative; }
.fv-popup-stage .cat-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  z-index: 10;
  max-height: 220px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px -8px rgba(0,0,0,0.6);
}
.fv-popup-stage .cat-dropdown > * {
  padding: 8px 11px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
}
.fv-popup-stage .cat-dropdown > *:last-child { border-bottom: 0; }
.fv-popup-stage .cat-dropdown > *:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.fv-popup-stage .cond-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border: 0;
}
.fv-popup-stage .cond-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
}
.fv-popup-stage .cond-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.fv-popup-stage .cond-pill::before {
  content: "";
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--text-muted);
  flex: none;
  transition: var(--transition);
}
.fv-popup-stage .cond-pill:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.14);
}
.fv-popup-stage .cond-pill:has(input:checked) {
  color: var(--primary-light);
  background: rgba(9,177,186,0.12);
  border-color: rgba(9,177,186,0.35);
}
.fv-popup-stage .cond-pill:has(input:checked)::before {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: inset 0 0 0 2px var(--bg-card);
}
.fv-popup-stage .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 800;
  transition: var(--transition);
  white-space: nowrap;
}
.fv-popup-stage .btn svg { width: 15px; height: 15px; flex: none; }
.fv-popup-stage .btn-primary {
  color: #04222a;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 6px 18px -6px var(--primary-glow);
}
.fv-popup-stage .btn-primary:hover { filter: brightness(1.06); }
.fv-popup-stage .btn-ghost {
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.fv-popup-stage .btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}
.fv-popup-stage .btn-sm { padding: 8px 13px; font-size: 11.5px; }
.fv-popup-stage .btn-block { width: 100%; }
.fv-popup-stage .action-bar {
  flex: none;
  padding: 11px 14px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.fv-popup-stage .setting-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.fv-popup-stage .setting-card .sc-head {
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.fv-popup-stage .setting-card .sc-head h3 {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-primary);
}
.fv-popup-stage .setting-card .sc-head .hint {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.fv-popup-stage .setting-card .sc-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fv-popup-stage .setting-card input[type="text"], .fv-popup-stage .setting-card input[type="url"] {
  width: 100%;
  padding: 9px 11px;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.01em;
  outline: 0;
  transition: var(--transition);
}
