/* ============================================================
   MONSA — Design System v2.0 (Dark Mode)
   ============================================================ */

/* ─── Design Tokens ──────────────────────────────────────── */
:root {
  /* Palette */
  --clr-bg:        #0a0a0f;
  --clr-bg-2:      #0f0f1a;
  --clr-bg-card:   rgba(255,255,255,0.04);
  --clr-border:    rgba(255,255,255,0.08);
  --clr-primary:   #6366f1;      /* indigo électrique */
  --clr-secondary: #a855f7;      /* violet */
  --clr-accent:    #10b981;      /* vert néon (CTA) */
  --clr-gold:      #f59e0b;      /* VIP */
  --clr-text:      #f1f5f9;
  --clr-muted:     #94a3b8;
  --clr-danger:    #ef4444;

  /* Gradients */
  --grad-primary:  linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
  --grad-accent:   linear-gradient(135deg, var(--clr-accent), #059669);
  --grad-hero:     radial-gradient(ellipse 120% 80% at 60% 30%, rgba(99,102,241,0.18) 0%, transparent 70%),
                   radial-gradient(ellipse 80% 60% at 10% 80%, rgba(168,85,247,0.12) 0%, transparent 60%);

  /* Typography */
  --font-body:     'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-py:    clamp(4rem, 8vw, 8rem);

  /* Radii */
  --radius-sm:     0.5rem;
  --radius-md:     1rem;
  --radius-lg:     1.5rem;
  --radius-xl:     2rem;

  /* Shadows */
  --shadow-card:   0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow:   0 0 40px rgba(99,102,241,0.25);
  --shadow-green:  0 0 30px rgba(16,185,129,0.3);

  /* Transitions */
  --ease-out:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Typography ─────────────────────────────────────────── */
.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-green {
  background: linear-gradient(135deg, var(--clr-accent), #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Layout ─────────────────────────────────────────────── */
.section-py { padding-top: var(--section-py); padding-bottom: var(--section-py); }

.container-xl {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Glassmorphism ──────────────────────────────────────── */
.glass {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
}

.glass-strong {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-lg);
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  border: none;
  white-space: nowrap;
  min-height: 44px;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}

.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(99,102,241,0.55); transform: translateY(-1px); }

.btn-accent {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: var(--shadow-green);
}
.btn-accent:hover { box-shadow: 0 0 45px rgba(16,185,129,0.5); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
}
.btn-ghost:hover { border-color: var(--clr-primary); color: var(--clr-primary); }

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(99,102,241,0.3);
}

.card-glow:hover {
  box-shadow: var(--shadow-glow);
}

/* Feature card accent line */
.card-feature {
  position: relative;
  overflow: hidden;
}
.card-feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.3s;
}
.card-feature:hover::before { opacity: 1; }

/* ─── Badge ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-primary {
  background: rgba(99,102,241,0.15);
  color: var(--clr-primary);
  border: 1px solid rgba(99,102,241,0.3);
}

.badge-accent {
  background: rgba(16,185,129,0.12);
  color: var(--clr-accent);
  border: 1px solid rgba(16,185,129,0.25);
}

.badge-gold {
  background: rgba(245,158,11,0.12);
  color: var(--clr-gold);
  border: 1px solid rgba(245,158,11,0.3);
}

/* ─── Divider with glow ──────────────────────────────────── */
.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.4), transparent);
  border: none;
}

/* ─── Section Labels ─────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

/* ─── Glow orbs (decorative background) ─────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.orb-primary {
  background: radial-gradient(circle, rgba(99,102,241,0.35), transparent 70%);
}
.orb-secondary {
  background: radial-gradient(circle, rgba(168,85,247,0.25), transparent 70%);
}
.orb-accent {
  background: radial-gradient(circle, rgba(16,185,129,0.2), transparent 70%);
}

/* ─── Animated counter ───────────────────────────────────── */
.counter-value {
  font-variant-numeric: tabular-nums;
}

/* ─── Pricing ────────────────────────────────────────────── */
.pricing-card {
  position: relative;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s;
}

.pricing-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.pricing-card.popular {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 1px var(--clr-primary), var(--shadow-glow);
  transform: scale(1.03);
}

.pricing-card.popular:hover {
  transform: translateY(-8px) scale(1.04);
}

.pricing-card.vip {
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(234,88,12,0.06));
  border-color: rgba(245,158,11,0.4);
  box-shadow: 0 0 40px rgba(245,158,11,0.15);
}

.pricing-card.vip:hover {
  box-shadow: 0 0 60px rgba(245,158,11,0.25);
}

/* ─── Comparison table ───────────────────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.875rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--clr-border);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.comparison-table thead th {
  background: rgba(99,102,241,0.08);
  font-weight: 700;
  color: var(--clr-text);
  font-size: 0.95rem;
}

.comparison-table thead th.highlight {
  background: rgba(99,102,241,0.2);
  color: var(--clr-primary);
}

.comparison-table .check { color: var(--clr-accent); font-size: 1.1rem; }
.comparison-table .cross { color: #64748b; font-size: 1rem; }

/* ─── Testimonial carousel ───────────────────────────────── */
.testimonial-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s var(--ease-out);
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 calc(100% / 3 - 1rem);
  min-width: 280px;
}

@media (max-width: 900px) {
  .testimonial-card { flex: 0 0 calc(100% / 2 - 0.75rem); }
}
@media (max-width: 580px) {
  .testimonial-card { flex: 0 0 100%; }
}

/* ─── FAQ accordion ──────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--clr-border); }

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 500;
  color: var(--clr-text);
  background: transparent;
  border: none;
  text-align: left;
  transition: color 0.2s;
  gap: 1rem;
}

.faq-trigger:hover { color: var(--clr-primary); }

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out), background 0.2s, border-color 0.2s;
  font-size: 0.9rem;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: rgba(99,102,241,0.15);
  border-color: var(--clr-primary);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.3s;
}

.faq-body.open {
  max-height: 400px;
  padding-bottom: 1.25rem;
}

.faq-body p {
  color: var(--clr-muted);
  line-height: 1.7;
}

/* ─── Animated underline ─────────────────────────────────── */
.underline-animated {
  position: relative;
  display: inline;
}
.underline-animated::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.underline-animated.in-view::after { transform: scaleX(1); }

/* ─── Animated gradient hero bg ─────────────────────────── */
@keyframes hero-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1) rotate(0deg); }
  33%       { opacity: 1;   transform: scale(1.05) rotate(1deg); }
  66%       { opacity: 0.8; transform: scale(0.98) rotate(-1deg); }
}

.hero-orb-1 { animation: hero-pulse 8s ease-in-out infinite; }
.hero-orb-2 { animation: hero-pulse 11s ease-in-out infinite reverse; }
.hero-orb-3 { animation: hero-pulse 14s ease-in-out infinite 3s; }

/* ─── Float animation ────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
.float { animation: float 4s ease-in-out infinite; }
.float-slow { animation: float 6s ease-in-out infinite 1s; }

/* ─── Fade in up ─────────────────────────────────────────── */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fade-in-up 0.7s var(--ease-out) both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ─── Typewriter ─────────────────────────────────────────── */
@keyframes type-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.type-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--clr-accent);
  vertical-align: middle;
  margin-left: 2px;
  animation: type-cursor 0.75s steps(1) infinite;
}

/* ─── Progress bar ───────────────────────────────────────── */
.progress-bar {
  height: 6px;
  border-radius: 9999px;
  background: var(--clr-border);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--grad-primary);
  transition: width 1s var(--ease-out);
}

/* ─── Scroll indicator ───────────────────────────────────── */
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(6px); opacity: 0.5; }
}
.scroll-indicator { animation: scroll-bounce 1.5s ease-in-out infinite; }

/* ─── Star rating ────────────────────────────────────────── */
.stars { color: #fbbf24; letter-spacing: 0.1em; }

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.navbar.scrolled {
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--clr-bg-2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--clr-primary), var(--clr-secondary));
  border-radius: 9999px;
}

/* ─── Form inputs ────────────────────────────────────────── */
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-text);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  min-height: 44px;
}

.input::placeholder { color: var(--clr-muted); }
.input:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.input.error { border-color: var(--clr-danger); }

/* ─── Mobile responsiveness ──────────────────────────────── */
@media (max-width: 768px) {
  .container-xl { padding: 0 1rem; }
  .pricing-card.popular { transform: scale(1); }

  /* Bottom nav spacing */
  body.has-bottom-nav { padding-bottom: 4.5rem; }

  /* Feature showcase panels */
  .showcase-store-grid  { grid-template-columns: 1fr !important; }
  .showcase-score-grid  { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  .showcase-score-grid > div:first-child { display: flex; flex-direction: column; align-items: center; }

  /* Showcase tabs — allow wrap & smaller text */
  .showcase-tab { font-size: 0.78rem !important; padding: 0.5rem 1rem !important; }

  /* Hero mockup — reduce padding on panels */
  #panel-ads > div,
  #panel-store > div,
  #panel-score > div { padding: 1.25rem !important; }
}

@media (max-width: 480px) {
  .btn-lg { padding: 0.875rem 1.75rem; font-size: 0.95rem; }
  .section-py { padding-top: 3rem; padding-bottom: 3rem; }
}

/* ─── Accessibility ──────────────────────────────────────── */
*:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Safe area (notched devices) ────────────────────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .has-safe-area { padding-bottom: env(safe-area-inset-bottom); }
}

/* ─── Utilities ──────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.text-muted  { color: var(--clr-muted); }
.text-accent { color: var(--clr-accent); }
.text-primary { color: var(--clr-primary); }

.border-top-glow {
  border-top: 1px solid transparent;
  background-clip: padding-box;
  position: relative;
}
.border-top-glow::before {
  content: '';
  position: absolute;
  top: -1px; left: 10%; right: 10%;
  height: 1px;
  background: var(--grad-primary);
  border-radius: 9999px;
  opacity: 0.6;
}

/* ─── Animation: shimmer skeleton loader ─────────────────── */
@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--clr-bg-card) 25%, rgba(255,255,255,0.05) 50%, var(--clr-bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

/* ─── Inline check/cross icons ───────────────────────────── */
.icon-check::before { content: '✓'; color: var(--clr-accent); font-weight: 700; }
.icon-cross::before { content: '✗'; color: #475569; }

/* ─── Number glow ────────────────────────────────────────── */
.stat-number {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

/* ─── Social proof logo strip ────────────────────────────── */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 20s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

/* ─── Print ──────────────────────────────────────────────── */
@media print {
  .navbar, nav.fixed { position: relative; }
  body { background: #fff; color: #000; }
}

/* ─── Monsa Score Badge ───────────────────────────────────── */
/*
  Usage in JS :
    <div class="score-badge score-high">87</div>
    <div class="score-badge score-medium">52</div>
    <div class="score-badge score-low">23</div>

  Or with ring variant (larger, circular) :
    <div class="score-ring score-high">
      <span class="score-ring-value">87</span>
      <span class="score-ring-label">Score</span>
    </div>
*/

.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 1.5rem;
  padding: 0 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

.score-badge.score-high {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.score-badge.score-medium {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.score-badge.score-low {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Circular ring variant — shown on product cards */
.score-ring {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  flex-shrink: 0;
}

.score-ring.score-high {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

.score-ring.score-medium {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.12);
}

.score-ring.score-low {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
}

.score-ring-value {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.score-ring.score-high  .score-ring-value { color: #34d399; }
.score-ring.score-medium .score-ring-value { color: #fbbf24; }
.score-ring.score-low   .score-ring-value { color: #f87171; }

.score-ring-label {
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--clr-text-muted);
  margin-top: 0.125rem;
}

/* Helper JS utility — render score badge HTML */
/* Usage in your JS files:
   import { renderScoreBadge } from './scoreUtils.js';
   cardEl.insertAdjacentHTML('beforeend', renderScoreBadge(product.monsa_score, product.monsa_score_meta));
*/

/* ─── Feature Card "NEW" variant ────────────────────── */
.feature-card-new {
  position: relative;
}
.feature-card-new::before {
  content: 'NEW';
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 9999px;
}

/* ─── Watch List (Alertes Tendances) ─────────────────────── */
.watch-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.watch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s;
}
.watch-item:hover { border-color: rgba(99,102,241,0.3); }

.watch-item-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.watch-item-keyword {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watch-item-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--clr-muted);
  font-size: 0.8rem;
}

.watch-source-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(99,102,241,0.12);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.2);
}

.watch-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ─── Spy List (Spy Concurrent) ──────────────────────────── */
.spy-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.spy-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s;
}
.spy-item:hover { border-color: rgba(16,185,129,0.3); }

.spy-item-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.spy-item-url {
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--clr-accent);
}

.spy-item-meta {
  color: var(--clr-muted);
  font-size: 0.8rem;
}

.spy-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ─── Watch / Spy Form ───────────────────────────────────── */
.watch-form, .spy-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-end;
  padding: 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.watch-form input, .watch-form select,
.spy-form input, .spy-form select {
  flex: 1;
  min-width: 140px;
  padding: 0.6rem 0.85rem;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.watch-form input:focus, .watch-form select:focus,
.spy-form input:focus, .spy-form select:focus {
  border-color: var(--clr-primary);
}

.watch-form select option, .spy-form select option {
  background: #1a1a2e;
  color: var(--clr-text);
}

/* ─── Plan quota indicator ───────────────────────────────── */
.quota-bar-wrap {
  margin-bottom: 1.5rem;
  padding: 0.875rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--clr-muted);
}
.quota-bar-wrap strong { color: var(--clr-text); }

/* ─── Empty state ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--clr-muted);
}
.empty-state-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.empty-state p { font-size: 0.9rem; line-height: 1.6; }

/* ─── Delete button (icon) ───────────────────────────────── */
.btn-icon-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  color: #f87171;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  font-size: 0.85rem;
}
.btn-icon-danger:hover {
  background: rgba(239,68,68,0.18);
  border-color: rgba(239,68,68,0.35);
}

/* ─── Responsive: watch/spy lists ────────────────────────── */
@media (max-width: 640px) {
  .watch-item, .spy-item {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .watch-item-actions, .spy-item-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .watch-form, .spy-form {
    flex-direction: column;
  }
  .watch-form input, .watch-form select,
  .spy-form input, .spy-form select {
    width: 100%;
    min-width: unset;
  }
}
