/* ═══════════════════════════════════════════════════════════════════════════
   TAUROSLAB — Dark SaaS Theme
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* ── BRAND PALETTE v1 — TAUROSLAB ─────────────────────────── */

  /* Surfaces */
  --bg:          #050505;
  --bg-soft:     #0A0A0C;
  --surface-up:  #0E0E10;
  --surface-top: #141417;

  /* Sidebar */
  --sidebar-bg:     rgba(7,8,9,0.97);
  --sidebar-border: rgba(255,255,255,0.07);

  /* Cards */
  --card-bg:        rgba(255,255,255,0.03);
  --card-bg-strong: rgba(255,255,255,0.05);
  --card-border:    rgba(255,255,255,0.08);
  --card-hover:     rgba(255,255,255,0.06);

  /* Text */
  --text:       #F2F3F5;
  --text-muted: #9BA3B0;
  --text-dim:   #4E545F;

  /* Primary — Plasma Violet */
  --accent:       #E1306C;
  --accent-hover: #F77737;
  --accent-glow:  rgba(225,48,108,0.28);
  --violet-900:   #2A0E3D;
  --violet-700:   #6A2E9E;
  --violet-500:   #833AB4;
  --violet-400:   #962FBF;
  --violet-200:   #D9B3F2;

  /* Secondary — Influence Rose */
  --rose-900:    #4C0519;
  --rose-700:    #C13584;
  --rose-500:    #E1306C;
  --rose-400:    #F0568C;
  --rose-200:    #FDA4AF;
  --rose-glow:   rgba(225,29,72,0.22);

  /* Tertiary — Liquid Gold */
  --gold-900:    #451A03;
  --gold-700:    #D98324;
  --gold-500:    #F77737;
  --gold-400:    #FCAF45;
  --gold-200:    #FDE68A;
  --gold-glow:   rgba(217,119,6,0.22);

  /* Semantic */
  --success: #10b981;
  --warning: #F59E0B;
  --error:   #EF4444;

  /* Platforms */
  --instagram: #E1306C;
  --tiktok:    #69c9d0;
  --x:         #e7e9ea;
  --youtube:   #ff2222;

  /* Layout */
  --sidebar-w: 248px;
  --header-h:  72px;
  --radius:    14px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow:    0 18px 48px rgba(0,0,0,0.32);
  --transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);

  /* Legacy alias */
  --accent-blue: #F77737;
}

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

html { font-size: 14px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  overflow: hidden;
}

/* ─── Scrollbar ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ─── Sidebar ─────────────────────────────────────────────────────────────── */
#sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--sidebar-border);
}
.logo-icon { font-size: 22px; color: var(--accent); }
.logo-text { font-size: 15px; font-weight: 800; letter-spacing: 1.5px; color: var(--text); }

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  position: relative;
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-item span:first-of-type { flex: 1; }
.nav-item:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.nav-item.active { color: var(--text); background: rgba(225,48,108,0.1); }
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}
.nav-item.active svg { color: var(--accent); }

.nav-subgroup {
  display: none;
  flex-direction: column;
  padding: 2px 0 6px 44px;
  gap: 1px;
}
.nav-subgroup.open { display: flex; }

.subtab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  width: 100%;
}
.subtab:hover { color: var(--text-muted); background: rgba(255,255,255,0.04); }
.subtab.active { color: var(--violet-400); background: rgba(225,48,108,0.08); font-weight: 600; }

.nav-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(225,48,108,0.2);
  color: var(--violet-200);
  min-width: 18px;
  text-align: center;
}
.nav-separator { height: 1px; background: var(--sidebar-border); margin: 8px 18px; }

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--sidebar-border);
}
.n8n-status { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--text-dim); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-dot.online  { background: var(--success); box-shadow: 0 0 6px var(--success); }
.status-dot.offline { background: var(--text-dim); }
.sidebar-version { font-size: 10px; color: var(--text-dim); margin-top: 8px; font-family: 'JetBrains Mono', monospace; }


#main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

#top-header {
  height: var(--header-h);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--card-border);
  flex-shrink: 0;
}
#page-title { font-size: 18px; font-weight: 700; line-height: 1; }
#page-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
#header-actions { display: flex; gap: 8px; }

/* ─── Sections ───────────────────────────────────────────────────────────── */
.section {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
}
.section.active { display: block; }

/* ─── Status Dots ─────────────────────────────────────────────────────────── */
.status-dot, .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.status-dot.online, .dot.green { background: var(--success); box-shadow: 0 0 6px var(--success); }
.status-dot.offline, .dot.grey { background: var(--text-dim); }
.dot.orange { background: var(--warning); }
.dot.red { background: var(--error); }

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-header .card-title { margin-bottom: 0; }

/* ─── Stats ──────────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}
.stat-card:hover { border-color: rgba(247, 37, 133, 0.3); }
.stat-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 20px; height: 20px; }
.stat-icon.purple { background: rgba(247, 37, 133, 0.15); color: #ff6ab5; }
.stat-icon.blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.stat-icon.pink { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
.stat-icon.green { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.stat-icon.red { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.stat-card-hot { cursor: pointer; border-color: rgba(239,68,68,0.15); }
.stat-card-hot:hover { border-color: rgba(239,68,68,0.4); }
.stat-value { font-size: 26px; font-weight: 800; line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* ─── Section Row ────────────────────────────────────────────────────────── */
.section-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

/* ─── Quick Actions ──────────────────────────────────────────────────────── */
.action-buttons { display: flex; flex-direction: column; gap: 10px; }

/* ─── Phases ─────────────────────────────────────────────────────────────── */
.phases-card { margin-bottom: 0; }
.phases-grid { display: flex; flex-direction: column; gap: 2px; }
.phase-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--card-border);
}
.phase-item:last-child { border-bottom: none; }
.phase-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.phase-item.done .phase-num { background: rgba(34,197,94,0.2); color: var(--success); }
.phase-item.pending .phase-num { background: rgba(255,255,255,0.05); color: var(--text-dim); }
.phase-info { flex: 1; }
.phase-name { font-size: 13px; font-weight: 600; }
.phase-desc { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.phase-status { font-size: 11px; }
.phase-item.done .phase-status { color: var(--success); }
.phase-item.pending .phase-status { color: var(--text-dim); }

/* ─── Recent Executions ──────────────────────────────────────────────────── */
.exec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--card-border);
  font-size: 12.5px;
}
.exec-item:last-child { border-bottom: none; }
.exec-name { flex: 1; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exec-time { color: var(--text-muted); font-size: 11px; flex-shrink: 0; }
.status-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  flex-shrink: 0;
}
.status-badge.success { background: rgba(34,197,94,0.15); color: var(--success); }
.status-badge.error { background: rgba(239,68,68,0.15); color: var(--error); }
.status-badge.running { background: rgba(245,158,11,0.15); color: var(--warning); }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}
.btn svg { width: 15px; height: 15px; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 14px var(--accent-glow); }
.btn-secondary { background: rgba(255,255,255,0.07); color: var(--text); border: 1px solid var(--card-border); }
.btn-secondary:hover { background: rgba(255,255,255,0.12); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--card-border); }
.btn-ghost:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.btn-danger { background: rgba(239,68,68,0.15); color: var(--error); border: 1px solid rgba(239,68,68,0.2); }
.btn-danger:hover { background: rgba(239,68,68,0.25); }
.btn-publish { background: linear-gradient(135deg, #059669, #047857); color: #fff; border: none; }
.btn-publish:hover { background: linear-gradient(135deg, #10b981, #059669); }
.char-ov-primary { background: var(--accent) !important; color: #fff !important; font-weight: 700; }
.btn-icon {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xs);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}
.btn-icon:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.btn-icon svg { width: 14px; height: 14px; }

/* ─── Influenceurs ───────────────────────────────────────────────────────── */
.section-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.search-input {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text-dim); }

/* ─── Images / grilles épurées ─────────────────────────────────────────── */
.influenceurs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.influencer-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}
.influencer-card:hover {
  border-color: rgba(225,48,108,0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.inf-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--surface-up);
  display: block;
  overflow: hidden;
}
.inf-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.inf-body { padding: 14px; }
.inf-name { font-weight: 700; font-size: 14px; }
.inf-username { color: var(--accent-hover); font-size: 12px; margin-top: 2px; }
.inf-niche { font-size: 11.5px; color: var(--text-muted); margin-top: 6px; }
.inf-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid var(--card-border);
}
.inf-images-count { font-size: 11px; color: var(--text-muted); }
.inf-date { font-size: 11px; color: var(--text-dim); }

/* ─── Influencer Detail ──────────────────────────────────────────────────── */
.inf-detail { display: flex; flex-direction: column; gap: 16px; }
.inf-detail-header { display: flex; gap: 16px; }
.inf-detail-img {
  width: 120px; height: 150px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; flex-shrink: 0;
  overflow: hidden;
}
.inf-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.inf-detail-meta h2 { font-size: 20px; font-weight: 800; }
.inf-detail-meta .username { color: var(--accent-hover); font-size: 13px; margin-top: 4px; }
.inf-detail-meta .bio { font-size: 12.5px; color: var(--text-muted); margin-top: 8px; line-height: 1.5; }
.inf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 12px;
  background: rgba(247, 37, 133, 0.12);
  color: var(--accent-hover);
  border: 1px solid rgba(247, 37, 133, 0.2);
}
.inf-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery-img {
  aspect-ratio: 3/4;
  border-radius: var(--radius-xs);
  background: var(--card-border);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-img img { width: 100%; height: 100%; object-fit: cover; }
.gallery-img.reference::after {
  content: '★ Référence';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(247,37,133,0.8);
  font-size: 10px;
  font-weight: 600;
  padding: 4px;
  text-align: center;
}
.gallery-img-actions {
  position: absolute;
  top: 0; right: 0;
  display: none;
  gap: 4px;
  padding: 6px;
}
.gallery-img:hover .gallery-img-actions { display: flex; }
.gallery-copy-btn {
  background: rgba(0,0,0,0.7);
  border: none;
  border-radius: 4px;
  color: white;
  font-size: 10px;
  padding: 3px 6px;
  cursor: pointer;
}
.gallery-ref-btn {
  background: rgba(245, 158, 11, 0.85);
  border: none;
  border-radius: 4px;
  color: white;
  font-size: 10px;
  padding: 3px 6px;
  cursor: pointer;
  font-weight: 600;
}
.gallery-ref-btn:hover { background: #f59e0b; }
.gallery-img.is-reference {
  border: 2px solid #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}
.ref-badge {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: linear-gradient(to bottom, rgba(245,158,11,0.9), transparent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 6px;
  text-align: center;
  border-radius: var(--radius-xs) var(--radius-xs) 0 0;
}
.inf-ref-star {
  position: absolute;
  top: 6px; right: 6px;
  background: rgba(245, 158, 11, 0.9);
  border-radius: 50%;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.phase-hint {
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(247,37,133,0.08);
  border: 1px dashed rgba(247,37,133,0.3);
  border-radius: 8px;
  padding: 12px;
  line-height: 1.5;
}
.phase2-form-inner { display: flex; flex-direction: column; gap: 0; }
.spinner {
  width: 24px; height: 24px;
  border: 3px solid rgba(247,37,133,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.brand-colors { display: flex; gap: 8px; margin-top: 8px; }
.color-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
}
.inf-section-title { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; }

/* ─── Workflows ──────────────────────────────────────────────────────────── */
.workflows-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; }
.phases-col { display: flex; flex-direction: column; gap: 14px; }
.executions-col { display: flex; flex-direction: column; gap: 14px; }

.phase-card { transition: var(--transition); }
.phase-card.coming-soon { opacity: 0.6; }
.phase-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.phase-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 9px;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  color: var(--text-muted);
}
.phase-badge.done { background: rgba(34,197,94,0.15); color: var(--success); }
.phase-card-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.phase-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.phase-card p { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }
.phase-tech { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tech-tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  border: 1px solid var(--card-border);
}
.phase-actions { display: flex; gap: 8px; margin-bottom: 14px; }
.phase-config { background: rgba(0,0,0,0.3); border-radius: var(--radius-sm); padding: 12px; border: 1px solid var(--card-border); }
.phase-config h4 { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px; }
.config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.config-item { display: flex; flex-direction: column; gap: 3px; }
.config-label { font-size: 10.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.config-item span:last-child { font-size: 12.5px; font-weight: 500; }

/* ─── Calendar ───────────────────────────────────────────────────────────── */
.calendar-layout { display: grid; grid-template-columns: 1fr 280px; gap: 20px; }
.calendar-sidebar { display: flex; flex-direction: column; gap: 14px; }
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cal-nav h3 { font-size: 15px; font-weight: 700; }
.cal-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}
.cal-days-header span { text-align: center; font-size: 11px; font-weight: 600; color: var(--text-dim); padding: 4px 0; text-transform: uppercase; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px 4px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  min-height: 52px;
  position: relative;
}
.cal-day:hover { background: rgba(255,255,255,0.05); border-color: var(--card-border); }
.cal-day.today { border-color: var(--accent); background: rgba(247, 37, 133, 0.08); }
.cal-day.selected { background: rgba(247, 37, 133, 0.15); border-color: var(--accent); }
.cal-day.other-month .day-num { color: var(--text-dim); }
.cal-day.other-month { opacity: 0.4; }
.day-num { font-size: 13px; font-weight: 600; line-height: 1; }
.cal-day.today .day-num { color: var(--accent-hover); }
.day-dots { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; margin-top: 4px; max-width: 100%; }
.day-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.day-dot.instagram { background: var(--instagram); }
.day-dot.tiktok { background: var(--tiktok); }
.day-dot.x { background: var(--x); }
.day-dot.youtube { background: var(--youtube); }

.platform-filters { display: flex; flex-direction: column; gap: 8px; }
.filter-check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.filter-check input { width: 14px; height: 14px; accent-color: var(--accent); cursor: pointer; }
.filter-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.filter-dot.instagram { background: var(--instagram); }
.filter-dot.tiktok { background: var(--tiktok); }
.filter-dot.x { background: var(--x); }
.filter-dot.youtube { background: var(--youtube); }

.post-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--card-border);
}
.post-item:last-child { border-bottom: none; }
.post-platform-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.post-platform-dot.instagram { background: var(--instagram); }
.post-platform-dot.tiktok { background: var(--tiktok); }
.post-platform-dot.x { background: var(--x); }
.post-platform-dot.youtube { background: var(--youtube); }
.post-info { flex: 1; min-width: 0; }
.post-platform-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; }
.post-platform-label.instagram { color: var(--instagram); }
.post-platform-label.tiktok { color: var(--tiktok); }
.post-platform-label.x { color: var(--x); }
.post-platform-label.youtube { color: var(--youtube); }
.post-caption { font-size: 12px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.post-time { font-size: 11px; color: var(--text-muted); }
.post-delete-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
  padding: 0 2px;
  transition: var(--transition);
  flex-shrink: 0;
}
.post-delete-btn:hover { color: var(--error); }

.upcoming-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--card-border);
  font-size: 12px;
}
.upcoming-item:last-child { border-bottom: none; }
.upcoming-date { color: var(--text-muted); font-size: 11px; white-space: nowrap; }

/* ─── Platforms ──────────────────────────────────────────────────────────── */
.platforms-grid { display: block; }
.platform-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px;
  transition: var(--transition);
}
.platform-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.platform-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.platform-icon { font-size: 26px; }
.platform-status-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
}
.platform-status-badge.active { background: rgba(34,197,94,0.15); color: var(--success); }
.platform-status-badge.setup { background: rgba(245,158,11,0.15); color: var(--warning); }
.platform-status-badge.inactive { background: rgba(255,255,255,0.05); color: var(--text-dim); }
.platform-name { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.platform-username { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.platform-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
.platform-stat { background: rgba(0,0,0,0.3); border-radius: var(--radius-xs); padding: 8px 10px; }
.platform-stat-val { font-size: 16px; font-weight: 800; line-height: 1; }
.platform-stat-label { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.platform-notes { font-size: 12px; color: var(--text-muted); background: rgba(0,0,0,0.2); border-radius: var(--radius-xs); padding: 10px; min-height: 40px; }

/* ─── Modals ─────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: #14162a;
  border: 1px solid rgba(247, 37, 133, 0.25);
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--card-border);
}
.modal-header h2 { font-size: 16px; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; padding: 4px; transition: var(--transition); }
.modal-close:hover { color: var(--text); }
#modal-body { padding: 24px; }

/* ─── Forms ──────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xs);
  padding: 9px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--text-dim); }
select { cursor: pointer; }
select option { background: #1a1a2e; }
textarea { resize: vertical; min-height: 80px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.textarea-import {
  width: 100%;
  height: 200px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: var(--text);
  font-family: 'Courier New', monospace;
  font-size: 11.5px;
  outline: none;
  resize: vertical;
}
.textarea-import:focus { border-color: var(--accent); }

/* ─── Empty States ────────────────────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  grid-column: 1 / -1;
}
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { font-size: 13px; color: var(--text-muted); max-width: 300px; margin-bottom: 20px; line-height: 1.5; }
.empty-state-sm {
  padding: 20px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-dim);
}

/* ─── Utilities ──────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 12px; }
.mt-2 { margin-top: 8px; }
.mb-2 { margin-bottom: 8px; }

/* ─── Studio Hero ─────────────────────────────────────────────────────────── */
.studio-hero { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 24px; overflow-x: auto; }
.studio-hero-empty { text-align: center; padding: 32px; color: var(--text-muted); }
.studio-hero-empty h3 { font-size: 16px; margin-bottom: 8px; color: var(--text); }
.studio-hero-empty p { font-size: 13px; margin-bottom: 16px; }
.studio-inf-row { display: flex; gap: 14px; }
.studio-inf-tile { flex-shrink: 0; width: 140px; background: rgba(255,255,255,0.03); border: 1px solid var(--card-border); border-radius: var(--radius-sm); padding: 12px; cursor: pointer; transition: var(--transition); text-align: center; }
.studio-inf-tile:hover { border-color: var(--accent); background: rgba(247,37,133,0.06); }
.studio-tile-img { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; margin: 0 auto 10px; background: var(--card-border); display: flex; align-items: center; justify-content: center; }
.studio-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.studio-tile-name { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio-tile-sub { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.studio-tile-actions { display: flex; gap: 4px; justify-content: center; margin-top: 10px; }
.tile-action-btn { background: rgba(255,255,255,0.06); border: none; border-radius: 4px; padding: 4px 7px; font-size: 12px; cursor: pointer; transition: var(--transition); }
.tile-action-btn:hover { background: rgba(255,255,255,0.12); }
.tile-action-btn.tile-hot { background: rgba(239,68,68,0.12); }
.tile-action-btn.tile-hot:hover { background: rgba(239,68,68,0.25); }
.add-tile { border-style: dashed; opacity: 0.6; }
.add-tile:hover { opacity: 1; }
.add-img { font-size: 28px; color: var(--text-muted); background: transparent; }

/* ─── Générer ─────────────────────────────────────────────────────────────── */
.generer-layout { display: grid; grid-template-columns: 1fr 260px; gap: 20px; }
.generer-left { display: flex; flex-direction: column; gap: 14px; }
.generer-right { display: flex; flex-direction: column; gap: 14px; }
.gen-inf-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.gen-inf-pill { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border: 1px solid var(--card-border); border-radius: 999px; cursor: pointer; font-size: 12px; transition: var(--transition); }
.gen-inf-pill:hover { border-color: var(--accent); }
.gen-inf-pill.active { border-color: var(--accent); background: rgba(225,48,108,0.12); color: var(--violet-400); }
.content-type-tabs { display: flex; gap: 4px; }
.type-tab { flex: 1; padding: 9px 6px; background: rgba(255,255,255,0.04); border: 1px solid var(--card-border); border-radius: var(--radius-sm); color: var(--text-muted); font-size: 12px; font-weight: 600; cursor: pointer; transition: var(--transition); text-align: center; }
.type-tab:hover { background: rgba(255,255,255,0.07); color: var(--text); }
.type-tab.active { background: rgba(225,48,108,0.15); border-color: var(--accent); color: var(--text); }
.type-tab[data-type="hot"].active { background: rgba(239,68,68,0.15); border-color: #ef4444; }
.type-tab[data-type="exclusive"].active { background: rgba(139,92,246,0.15); border-color: #8b5cf6; }
.type-tab[data-type="product"].active { background: rgba(245,158,11,0.15); border-color: #f59e0b; }
.gen-ref-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.gen-ref-img { aspect-ratio: 3/4; border-radius: var(--radius-xs); overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: var(--transition); position: relative; }
.gen-ref-img img { width: 100%; height: 100%; object-fit: cover; }
.gen-ref-img.selected { border-color: var(--accent); }
.gen-ref-img:hover { border-color: rgba(247,37,133,0.5); }
.gen-ref-star { position: absolute; top: 3px; left: 3px; font-size: 11px; background: rgba(0,0,0,0.65); border-radius: 3px; padding: 1px 3px; pointer-events: none; }
/* Style Refs Panel */
.gen-style-ref-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.gen-style-thumb { aspect-ratio: 1/1; border-radius: var(--radius-xs); overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: var(--transition); position: relative; }
.gen-style-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gen-style-thumb:hover { border-color: rgba(247,37,133,0.5); }
.gen-style-thumb.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.gen-style-cat { position: absolute; bottom: 0; left: 0; right: 0; font-size: 8px; padding: 2px 3px; background: rgba(0,0,0,0.75); color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.gen-style-check { position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 9px; display: flex; align-items: center; justify-content: center; font-weight: 700; pointer-events: none; }
.btn-generate { width: 100%; padding: 13px; border: none; border-radius: var(--radius-sm); color: white; font-size: 14px; font-weight: 700; cursor: pointer; transition: var(--transition); opacity: 0.9; margin-top: 4px; }
.btn-generate:hover { opacity: 1; transform: translateY(-1px); }
.btn-generate:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-hot { background: rgba(239,68,68,0.15) !important; color: #f87171 !important; border: 1px solid rgba(239,68,68,0.3) !important; }
.btn-hot:hover { background: rgba(239,68,68,0.25) !important; }
.hot-warning { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 12px; line-height: 1.5; margin-bottom: 14px; color: #f87171; }

/* ─── Bibliothèque ────────────────────────────────────────────────────────── */
.library-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.library-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.lib-filter { padding: 6px 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--card-border); border-radius: 999px; color: var(--text-muted); font-size: 12px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.lib-filter:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.lib-filter.active { background: rgba(225,48,108,0.15); border-color: var(--accent); color: var(--text); }
.lib-filter[data-filter="hot"].active { background: rgba(239,68,68,0.15); border-color: #ef4444; }
.lib-filter[data-filter="exclusive"].active { background: rgba(139,92,246,0.15); border-color: #8b5cf6; }
.lib-filter[data-filter="product"].active { background: rgba(245,158,11,0.15); border-color: #f59e0b; }
.bibliotheque-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.lib-img-wrap { position: relative; aspect-ratio: 3/4; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-up); border: 1px solid var(--card-border); transition: var(--transition); }
.lib-img-wrap:hover { border-color: rgba(225,48,108,0.35); transform: translateY(-2px); }
.lib-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-type-badge { position: absolute; top: 6px; left: 6px; font-size: 9px; font-weight: 700; color: white; padding: 2px 6px; border-radius: 4px; opacity: 0.9; text-transform: uppercase; letter-spacing: .4px; }
.lib-actions { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.85)); padding: 24px 6px 8px; display: none; gap: 4px; }
.lib-img-wrap:hover .lib-actions { display: flex; }
.lib-action-btn { flex: 1; background: rgba(255,255,255,0.13); border: none; border-radius: 4px; color: white; font-size: 13px; padding: 5px 4px; cursor: pointer; transition: background .15s; }
.lib-action-btn:hover { background: rgba(255,255,255,0.25); }
.lib-inf-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-prompt { font-size: 10px; color: var(--text-dim); margin-top: 2px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-style: italic; }

/* ─── Monétisation ────────────────────────────────────────────────────────── */
.monetisation-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.monet-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--card-border); }
.monet-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.monet-header h3 { font-size: 16px; font-weight: 700; }
.monet-setup-step { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--card-border); font-size: 12.5px; line-height: 1.5; }
.monet-setup-step:last-of-type { margin-bottom: 12px; }
.step-num { width: 22px; height: 22px; border-radius: 50%; background: rgba(247,37,133,0.15); color: var(--accent); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.monet-platform-links { display: flex; gap: 8px; margin-bottom: 12px; }
.monet-link-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; background: rgba(255,255,255,0.05); border: 1px solid var(--card-border); border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-size: 12px; font-weight: 600; transition: var(--transition); }
.monet-link-btn:hover { background: rgba(255,255,255,0.1); border-color: var(--accent); }
.monet-workflow-hint { background: rgba(0,0,0,0.3); border-radius: var(--radius-sm); padding: 12px; }

/* ─── Command Center ─────────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, rgba(225,48,108,0.08), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(225,29,72,0.05), transparent 28%);
  z-index: -1;
}
#sidebar { background: linear-gradient(180deg, rgba(7,8,9,0.98), rgba(13,14,17,0.97)); }
#top-header { background: rgba(7,8,9,0.75); backdrop-filter: blur(18px); }
.card, .studio-hero, .stat-card, .char-card {
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 12px 32px rgba(0,0,0,0.18);
}
.studio-hero {
  background: rgba(13,14,17,0.92);
  border-color: rgba(225,48,108,0.15);
}
.command-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  padding: 22px;
  border: 1px solid rgba(225,48,108,0.15);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(225,48,108,0.08), rgba(0,0,0,0.2));
  margin-bottom: 16px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-hover);
  font-weight: 800;
  margin-bottom: 8px;
}
.command-copy h2 {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  max-width: 760px;
}
.command-copy p {
  color: var(--text-muted);
  max-width: 620px;
  margin-top: 10px;
  line-height: 1.55;
}
.command-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ops-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.ops-card {
  padding: 14px;
  min-height: 96px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
}
.ops-label { color: var(--text-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.ops-value { font-size: 26px; font-weight: 850; letter-spacing: -0.04em; margin-top: 10px; }
.ops-detail { color: var(--text-dim); font-size: 11.5px; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ops-card.green .ops-value { color: var(--success); }
.ops-card.orange .ops-value, .ops-card.gold .ops-value { color: var(--accent-hover); }
.ops-card.red .ops-value { color: var(--error); }
.ops-card.blue .ops-value { color: #60a5fa; }
.ops-card.muted .ops-value { color: var(--text-muted); }
.monet-kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
.monet-kpi { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 12px; }
.monet-kpi span, .monet-kpi small { display: block; color: var(--text-muted); font-size: 11px; }
.monet-kpi strong { display: block; font-size: 22px; line-height: 1; margin: 7px 0 5px; letter-spacing: -0.04em; }
.monet-readiness { border-radius: 12px; padding: 10px 12px; margin: 10px 0; border: 1px solid rgba(255,255,255,0.08); }
.monet-readiness span { display: block; font-weight: 800; font-size: 12px; }
.monet-readiness small { display: block; color: var(--text-muted); margin-top: 3px; line-height: 1.4; }
.monet-readiness.ready { background: rgba(16,185,129,0.10); border-color: rgba(16,185,129,0.22); color: var(--success); }
.monet-readiness.blocked { background: rgba(245,158,11,0.10); border-color: rgba(245,158,11,0.22); color: var(--accent-hover); }
.monet-row { display:flex; align-items:center; justify-content:space-between; padding:10px 0; border-bottom:1px solid var(--card-border); font-size:13px; }
.monet-row.total { border-bottom:0; font-weight:700; }
@media (max-width: 1100px) {
  .command-hero { grid-template-columns: 1fr; }
  .command-actions { justify-content: flex-start; }
  .ops-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .ops-grid, .monet-kpi-grid { grid-template-columns: 1fr; }
  .command-hero { padding: 16px; }
}

/* ─── Animations ─────────────────────────────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.section.active { animation: fadeIn 0.2s ease; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.loading { animation: pulse 1.5s infinite; }

/* ─── Phase 1 Modal ───────────────────────────────────────────────────────── */
.modal-wide { max-width: 780px !important; }
.modal-xl { max-width: 980px !important; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--card-border); }
.phase1-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; padding: 20px 24px; }
.phase1-form-3col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 22px; padding: 20px 24px; max-height: 70vh; overflow-y: auto; }
.phase1-col {}
.form-section-header { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin: 14px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--card-border); }
.form-section-header:first-child { margin-top: 0; }
.chip-group { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { display: inline-flex; align-items: center; padding: 4px 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--card-border); border-radius: 20px; cursor: pointer; font-size: 12px; color: var(--text-muted); transition: var(--transition); font-weight: 500; user-select: none; }
.chip.active { background: rgba(247,37,133,0.12); border-color: var(--accent); color: var(--accent); }
.chip:hover { border-color: rgba(247,37,133,0.5); }
.color-swatches { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.color-swatch { width: 22px; height: 22px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: var(--transition); outline: 2px solid transparent; outline-offset: 2px; }
.color-swatch:hover { outline-color: rgba(255,255,255,0.5); }
.color-swatch.active { outline-color: var(--accent); border-color: rgba(0,0,0,0.3); }
.form-input { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--card-border); border-radius: var(--radius-xs); padding: 9px 12px; color: var(--text); font-family: inherit; font-size: 13px; outline: none; transition: var(--transition); box-sizing: border-box; }
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text-dim); }
.form-select { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--card-border); border-radius: var(--radius-xs); padding: 9px 12px; color: var(--text); font-family: inherit; font-size: 13px; outline: none; cursor: pointer; transition: var(--transition); box-sizing: border-box; }
.form-select:focus { border-color: var(--accent); }
.form-select option { background: #14162a; }
.radio-group { display: flex; gap: 8px; }
.radio-opt { display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--card-border); border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; color: var(--text-muted); transition: var(--transition); font-weight: 500; }
.radio-opt input[type="radio"] { display: none; }
.radio-opt.active { background: rgba(247,37,133,0.12); border-color: var(--accent); color: var(--accent); }
.radio-opt:hover { border-color: var(--accent); }
.phase1-running { display: flex; align-items: center; gap: 14px; padding: 14px 24px; background: rgba(247,37,133,0.06); border-top: 1px solid rgba(247,37,133,0.15); }

/* ─── Références ─────────────────────────────────────────────────────────── */
.ref-tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--card-border); padding-bottom: 0; }
.ref-tab { padding: 8px 16px; font-size: 13px; font-weight: 500; color: var(--text-muted); background: transparent; border: none; border-bottom: 2px solid transparent; cursor: pointer; transition: var(--transition); margin-bottom: -1px; }
.ref-tab:hover { color: var(--text); }
.ref-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.ref-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 10px; }
.references-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.ref-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); cursor: default; }
.ref-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(247,37,133,0.15); }
.ref-card-img { width: 100%; aspect-ratio: 3/4; position: relative; overflow: hidden; background: rgba(255,255,255,0.04); }
.ref-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ref-card-img .ref-cat-badge { position: absolute; bottom: 6px; left: 6px; }
.ref-card-img-placeholder { width: 100%; aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.04); font-size: 32px; }
.ref-card-body { padding: 10px 10px 8px; }
.ref-card-name { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 5px; }
.ref-cat-badge { display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.4px; }
.ref-cat-badge.context  { background: rgba(247,37,133,0.15); color: #ff6ab5; }
.ref-cat-badge.outfit   { background: rgba(236,72,153,0.15); color: #f472b6; }
.ref-cat-badge.location { background: rgba(16,185,129,0.15); color: #34d399; }
.ref-cat-badge.style    { background: rgba(245,158,11,0.15); color: #fbbf24; }
.ref-card-footer { display: flex; align-items: center; justify-content: space-between; padding: 4px 10px 8px; }
.ref-card-tags { font-size: 10.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.ref-delete-btn { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 13px; padding: 2px 4px; border-radius: 4px; transition: var(--transition); }
.ref-delete-btn:hover { color: var(--error); background: rgba(239,68,68,0.1); }
.ref-card-actions { display: flex; gap: 6px; padding: 6px 8px 8px; border-top: 1px solid var(--card-border); }
.ref-card-actions .btn { flex: 1; font-size: 11px; padding: 5px 0; }
.ref-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ref-tag { font-size: 10px; padding: 1px 6px; background: rgba(255,255,255,0.05); border-radius: 20px; color: var(--text-muted); }

/* ─── Référence modal tabs ───────────────────────────────────────────────── */
.ref-modal-tabs { display: flex; gap: 0; margin-bottom: 16px; border: 1px solid var(--card-border); border-radius: var(--radius-sm); overflow: hidden; }
.ref-modal-tab { flex: 1; padding: 8px; font-size: 12.5px; font-weight: 600; background: transparent; border: none; color: var(--text-muted); cursor: pointer; transition: var(--transition); }
.ref-modal-tab.active { background: rgba(247,37,133,0.12); color: var(--accent); }
.ref-modal-tab:hover:not(.active) { background: rgba(255,255,255,0.04); }
.ref-upload-zone { border: 2px dashed var(--card-border); border-radius: var(--radius); padding: 28px; text-align: center; cursor: pointer; transition: var(--transition); color: var(--text-muted); font-size: 13px; }
.ref-upload-zone:hover { border-color: var(--accent); background: rgba(247,37,133,0.04); color: var(--text); }
.ref-preview-img { width: 100%; max-height: 180px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 12px; }

/* ─── Variations References Grid ────────────────────────────────────────── */
.var-refs-section { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--card-border); }
.var-refs-section-title { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.var-refs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.var-ref-thumb { position: relative; aspect-ratio: 3/4; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: var(--transition); }
.var-ref-thumb img { width: 100%; height: 100%; object-fit: cover; }
.var-ref-thumb .var-ref-label { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.65); padding: 3px 4px; font-size: 9px; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.var-ref-thumb:hover { border-color: var(--accent-hover); }
.var-ref-thumb.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.var-ref-thumb.selected::after { content: '✓'; position: absolute; top: 4px; right: 4px; background: var(--accent); color: white; font-size: 9px; font-weight: 700; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.var-ref-placeholder { aspect-ratio: 3/4; border-radius: var(--radius-sm); background: rgba(255,255,255,0.04); display: flex; align-items: center; justify-content: center; font-size: 22px; }

/* ─── Post status badges ─────────────────────────────────────────────────── */
.post-status-badge { display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 20px; }
.post-status-badge.planned { background: rgba(107,122,158,0.15); color: var(--text-muted); }
.post-status-badge.posted  { background: rgba(34,197,94,0.15);  color: var(--success); }
.post-status-badge.failed  { background: rgba(239,68,68,0.15);   color: var(--error); cursor: help; }
.btn-xs { padding: 4px 8px !important; font-size: 11px !important; }

/* ─── Batch Planner ──────────────────────────────────────────────────────── */
.cal-batch-row { display: flex; justify-content: center; padding: 8px 0 4px; }
.batch-modal { display: flex; flex-direction: column; gap: 0; }
.batch-ppd-btn { min-width: 70px; }
.batch-progress-bar { width: 100%; height: 8px; background: rgba(255,255,255,0.08); border-radius: 10px; overflow: hidden; margin-top: 12px; }
.batch-progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #F77737); border-radius: 10px; transition: width 0.4s ease; }

/* ─── Réseaux sociaux par influenceur ────────────────────────────────────── */
.social-accounts-grid { display: flex; flex-direction: column; gap: 6px; }
.social-account-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); transition: border-color .15s; }
.social-account-item.configured { background: rgba(247,37,133,0.05); border-color: rgba(247,37,133,0.2); }
.social-account-icon { font-size: 16px; width: 24px; text-align: center; flex-shrink: 0; }
.social-account-info { flex: 1; min-width: 0; }
.social-account-name { font-size: 12px; font-weight: 600; }
.social-account-handle { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ─── Voice picker ───────────────────────────────────────────────────────── */
.voice-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-bottom: 10px; }
.voice-option { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: var(--radius-sm); border: 2px solid var(--card-border); cursor: pointer; transition: border-color .15s, background .15s; background: rgba(255,255,255,0.02); }
.voice-option:hover { border-color: rgba(247,37,133,0.35); background: rgba(247,37,133,0.04); }
.voice-option.selected { border-color: var(--accent); background: rgba(247,37,133,0.08); }
.voice-option-icon { font-size: 18px; flex-shrink: 0; }
.voice-option-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.voice-option-name { font-size: 12.5px; font-weight: 600; color: var(--text); }
.voice-option-desc { font-size: 10.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ─── Audio items ─────────────────────────────────────────────────────────── */
.audio-item { background: rgba(255,255,255,0.03); border: 1px solid var(--card-border); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 7px; }
.audio-item audio { width: 100%; height: 32px; display: block; margin-bottom: 6px; }
.audio-item-meta { display: flex; align-items: center; gap: 6px; }
.audio-text-preview { font-size: 11px; color: var(--text-muted); font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }

/* ─── Section Voix dédiée ─────────────────────────────────────────────────── */
.voix-layout { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .voix-layout { grid-template-columns: 1fr; } }
.voix-form-col { display: flex; flex-direction: column; }
.voix-results-col {}
.voix-step-card { padding: 20px; margin-bottom: 14px; }
.voix-step-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); margin-bottom: 16px; }
.voix-step-num { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.voix-inf-selector { display: flex; flex-wrap: wrap; gap: 8px; }
.vid-inf-chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--card-border); border-radius: 20px; padding: 5px 12px 5px 6px; cursor: pointer; transition: all 0.15s; font-size: 13px; color: var(--text-muted); }
.vid-inf-chip:hover { border-color: rgba(247,37,133,0.4); color: var(--text); }
.vid-inf-chip.selected { border-color: #f72585 !important; color: var(--text) !important; background: rgba(247,37,133,0.08) !important; }
.voice-badge-sm { font-size: 10px; color: #f72585; background: rgba(247,37,133,0.12); border-radius: 10px; padding: 1px 6px; white-space: nowrap; }
/* Select voix dropdown */
#voix-voice-select { font-size: 13px; }
#voix-voice-select optgroup { font-size: 11px; font-weight: 700; color: var(--text-muted); }
#voix-voice-select option { font-size: 13px; padding: 4px 0; }

/* ─── Plateformes redesign ───────────────────────────────────────────────── */
.plat-section-title { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; margin-top: 32px; padding-bottom: 8px; border-bottom: 1px solid var(--card-border); }
.plat-section-title:first-child { margin-top: 0; }
.platforms-grid-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 0; }
.plat-inf-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.04); cursor: pointer; transition: background .15s; margin-bottom: 4px; }
.plat-inf-row:hover { background: rgba(255,255,255,0.08); }
.plat-inf-avatar { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,0.05); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.plat-inf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.plat-inf-info { flex: 1; min-width: 0; }
.plat-inf-name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plat-inf-handle { font-size: 10px; color: var(--text-muted); }
.plat-inf-table-wrap { overflow-x: auto; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); }
.plat-inf-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.plat-inf-table th { padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.08); white-space: nowrap; color: var(--text-muted); }
.plat-inf-table td { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
.plat-inf-table tr:last-child td { border-bottom: none; }
.plat-inf-table tr:hover td { background: rgba(255,255,255,0.02); }
.plat-cell-ok { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font-size: 12px; color: var(--text-secondary); padding: 2px 6px; border-radius: 12px; background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2); }
.plat-cell-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.plat-cell-add { opacity: 0.5; }
.plat-cell-add:hover { opacity: 1; }

/* ─── Section Vidéo (Kling 2.6) ─────────────────────────────────────────────── */
.video-layout { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .video-layout { grid-template-columns: 1fr; } }

.video-step-card { padding: 18px; margin-bottom: 14px; }
.video-step-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.video-step-num { width: 22px; height: 22px; border-radius: 50%; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Influencer pills */
.vid-inf-selector { display: flex; flex-wrap: wrap; gap: 8px; }
.vid-inf-pill { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 20px; padding: 6px 14px 6px 6px; cursor: pointer; transition: all 0.15s; font-size: 13px; color: var(--text-secondary); }
.vid-inf-pill:hover { border-color: rgba(239,68,68,0.4); color: var(--text-primary); }
.vid-inf-pill-active { border-color: #ef4444 !important; color: var(--text-primary) !important; background: rgba(239,68,68,0.08) !important; }
.vid-inf-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.vid-inf-avatar-placeholder { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 14px; }

/* Image grid picker */
.vid-img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.vid-img-thumb { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color 0.15s; }
.vid-img-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vid-img-thumb:hover { border-color: rgba(239,68,68,0.5); }
.vid-img-thumb-active { border-color: #ef4444 !important; }
.vid-img-check { position: absolute; inset: 0; background: rgba(239,68,68,0.25); display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; font-weight: 700; }

/* Progress bar */
.vid-progress-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.15); border-radius: 8px; font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.vid-progress-pulse { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; animation: pulse-dot 1.2s infinite; flex-shrink: 0; }
@keyframes pulse-dot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }

/* Result cards */
.vid-result-card { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-bottom: 1px solid var(--border); position: relative; }
.vid-result-card:last-child { border-bottom: none; }
.vid-result-thumb { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: rgba(255,255,255,0.04); position: relative; }
.vid-result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vid-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.vid-thumb-pulse { position: absolute; inset: 0; background: rgba(239,68,68,0.15); animation: pulse-bg 1.5s infinite; }
@keyframes pulse-bg { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.vid-result-info { flex: 1; min-width: 0; }
.vid-result-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.vid-result-meta { font-size: 11px; color: var(--text-muted); margin: 2px 0 4px; }
.vid-result-prompt { font-size: 11px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vid-result-status { display: inline-block; font-size: 11px; font-weight: 600; margin-top: 5px; padding: 2px 8px; border-radius: 10px; }
.vid-status-done  { background: rgba(34,197,94,0.12); color: #22c55e; }
.vid-status-failed{ background: rgba(239,68,68,0.12); color: #ef4444; }
.vid-status-gen   { background: rgba(250,204,21,0.12); color: #facc15; }
.vid-result-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.vid-result-del { position: absolute; top: 10px; right: 10px; background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 13px; opacity: 0; transition: opacity 0.15s; padding: 2px 4px; }
.vid-result-card:hover .vid-result-del { opacity: 1; }
.vid-result-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.vid-player-wrap { margin: 10px 0 6px; border-radius: 8px; overflow: hidden; background: #000; }
.vid-player { width: 100%; max-height: 220px; display: block; }
.vid-generating-bar { display: flex; align-items: center; gap: 10px; padding: 10px; background: rgba(250,204,21,0.06); border-radius: 8px; margin-top: 8px; font-size: 12px; color: var(--text-muted); }

/* ─── Pipeline Studio ────────────────────────────────────────────────────────── */
.pipeline-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pipeline-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin: 0; }
.pipeline-add-btns { display: flex; gap: 8px; }
.pipeline-list { display: flex; flex-direction: column; gap: 14px; }
.pipeline-card { display: flex; gap: 16px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px; transition: border-color 0.15s; }
.pipeline-card:hover { border-color: rgba(255,255,255,0.12); }
.pipe-avatar { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: rgba(255,255,255,0.04); }
.pipe-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pipe-avatar-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.pipe-body { flex: 1; min-width: 0; }
.pipe-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.pipe-name { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.pipe-username { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.pipe-platforms { display: flex; gap: 6px; }
.pipe-plat-dot { font-size: 16px; opacity: 0.3; }
.pipe-plat-dot.ok { opacity: 1; }
.pipe-stats { display: flex; gap: 20px; margin-bottom: 12px; flex-wrap: wrap; }
.pipe-stat { display: flex; flex-direction: column; align-items: center; min-width: 52px; }
.pipe-stat-val { font-size: 20px; font-weight: 700; color: var(--text-primary); line-height: 1; }
.pipe-stat-lbl { font-size: 10px; color: var(--text-muted); margin-top: 3px; white-space: nowrap; }
.pipe-stat.published .pipe-stat-val { color: #22c55e; }
.pipe-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ─── API Wizard ────────────────────────────────────────────────────────────── */
.api-wizard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.api-wizard-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.api-wizard-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; cursor: pointer; transition: background 0.15s; user-select: none; }
.api-wizard-header:hover { background: rgba(255,255,255,0.03); }
.api-wizard-status { font-size: 11px; font-weight: 600; color: var(--text-muted); }
.api-wizard-chevron { font-size: 12px; color: var(--text-muted); }
.api-wizard-body { padding: 0 16px 16px; border-top: 1px solid var(--border); }
.api-wizard-guide { margin: 14px 0 12px; }
.wizard-guide-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 8px; }
.wizard-steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.wizard-steps li { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.wizard-steps code { background: rgba(255,255,255,0.08); padding: 1px 5px; border-radius: 4px; font-size: 10px; }
.wizard-fields { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.wizard-input { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 6px; padding: 7px 10px; color: var(--text-primary); font-size: 12px; font-family: monospace; }
.wizard-input:focus { outline: none; border-color: rgba(247,37,133,0.5); }
.wizard-actions { display: flex; gap: 8px; margin-bottom: 8px; }
.wizard-result { min-height: 18px; }

/* ═══════════════════════════════════════════════════════════════════════════
   TAUROSLAB — Premium Simplicity Pass v1
   Goal: calmer, clearer, more practical SaaS cockpit.
   ═══════════════════════════════════════════════════════════════════════════ */
html {
  font-size: 14px;
  background: var(--bg);
}

body {
  font-feature-settings: "cv01", "ss03";
  background:
    radial-gradient(circle at 24% -10%, rgba(131,58,180,0.14), transparent 32%),
    radial-gradient(circle at 86% 8%, rgba(252,175,69,0.05), transparent 28%),
    linear-gradient(180deg, #08090a 0%, #0b0c0f 100%);
}

body::before {
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 68%);
}

#sidebar {
  background: linear-gradient(180deg, rgba(10,11,14,0.98), rgba(8,9,10,0.96));
  border-right: 1px solid var(--sidebar-border);
  box-shadow: 1px 0 0 rgba(255,255,255,0.025), 22px 0 60px rgba(0,0,0,0.22);
}

.sidebar-logo {
  padding: 20px 18px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.055);
}
.logo-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ring-gradient);
  border: none;
  font-size: 14px;
}
.logo-text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  background: none;
  -webkit-text-fill-color: var(--text);
  color: var(--text);
}
.sidebar-nav { padding: 14px 10px; gap: 3px; }
.nav-item {
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #8f96a3;
  font-size: 13px;
  font-weight: 500;
}
.nav-item svg { width: 15px; height: 15px; opacity: .82; }
.nav-item:hover {
  background: rgba(255,255,255,0.045);
  border-color: rgba(255,255,255,0.06);
  color: var(--text);
}
.nav-item.active {
  background: rgba(225,48,108,0.13);
  color: #f3f4ff;
  border-color: rgba(225,48,108,0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.nav-badge {
  background: rgba(255,255,255,0.07);
  color: #dfe2ea;
  border: 1px solid rgba(255,255,255,0.08);
  font-weight: 600;
}
.nav-item.active .nav-badge { background: rgba(225,48,108,0.22); color: #fff; }
.nav-separator { background: rgba(255,255,255,0.06); margin: 10px 8px; }
.sidebar-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.055);
}
.sidebar-footer .n8n-status { font-size: 11.5px; }
.sidebar-version {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  padding: 3px 6px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
}

#top-header {
  height: var(--header-h);
  padding: 0 30px;
  background: rgba(8,9,10,0.74);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.065);
}
#page-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.035em;
}
#page-subtitle {
  color: #8f96a3;
  font-size: 12.5px;
  margin-top: 5px;
}
.section { padding: 26px 30px 36px; }

.card, .studio-hero, .stat-card, .char-card, .ops-card, .modal-content, .modal-box {
  background: linear-gradient(180deg, rgba(255,255,255,0.052), rgba(255,255,255,0.026));
  border: 1px solid rgba(255,255,255,0.082);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 18px 50px rgba(0,0,0,0.22);
}
.card { padding: 18px; }
.card-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.btn, .lib-filter, .type-tab, .chip, .radio-opt, .monet-link-btn {
  min-height: 36px;
  border-radius: 8px;
  font-weight: 600;
}
.btn-primary, .btn-generate {
  background: linear-gradient(180deg, #828fff, #5e6ad2) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: 0 10px 28px rgba(94,106,210,0.22), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover, .btn-generate:hover {
  background: linear-gradient(180deg, #969dff, #6975e4) !important;
  box-shadow: 0 14px 34px rgba(94,106,210,0.28), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-secondary, .btn-ghost, .lib-filter, .type-tab {
  background: rgba(255,255,255,0.045);
  color: #d7dbe4;
  border: 1px solid rgba(255,255,255,0.08);
}
.btn-secondary:hover, .btn-ghost:hover, .lib-filter:hover, .type-tab:hover {
  background: rgba(255,255,255,0.075);
  color: var(--text);
  border-color: rgba(255,255,255,0.13);
}
.btn-hot {
  background: rgba(239,68,68,0.10) !important;
  color: #fca5a5 !important;
  border-color: rgba(239,68,68,0.22) !important;
}

.studio-hero {
  border-radius: 22px;
  border-color: rgba(225,48,108,0.16);
  background:
    radial-gradient(circle at 12% 0%, rgba(225,48,108,0.18), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.052), rgba(255,255,255,0.022));
}
.command-hero {
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(225,48,108,0.13), rgba(96,165,250,0.055) 52%, rgba(255,255,255,0.02)),
    rgba(0,0,0,0.16);
  border-color: rgba(255,255,255,0.08);
}
.eyebrow {
  color: #9ea3ff;
  font-weight: 600;
  letter-spacing: .18em;
}
.command-copy h2 {
  font-weight: 600;
  letter-spacing: -0.06em;
  color: var(--text);
}
.command-copy p { color: #a7adb7; }
.ops-grid { gap: 12px; }
.ops-card {
  min-height: 104px;
  border-radius: 14px;
  background: rgba(255,255,255,0.032);
}
.ops-label {
  font-size: 10.5px;
  font-weight: 600;
  color: #8f96a3;
}
.ops-value {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
}
.ops-detail { color: #707782; }
.ops-card.orange .ops-value, .ops-card.gold .ops-value { color: #c4c8ff; }
.ops-card.blue .ops-value { color: #93c5fd; }

.stat-card:hover, .char-card:hover {
  border-color: rgba(225,48,108,0.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 20px 54px rgba(0,0,0,0.28);
}
.stat-icon.purple, .stat-icon.blue, .stat-icon.pink, .stat-icon.green {
  background: rgba(225,48,108,0.12);
  color: #a5b4fc;
}
.stat-value { font-weight: 600; letter-spacing: -0.04em; }
.stat-label { color: #8f96a3; }

input, textarea, select, .form-input, .form-select, .search-input, .wizard-input {
  background: rgba(255,255,255,0.045) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: var(--text) !important;
}
input:focus, textarea:focus, select:focus, .form-input:focus, .form-select:focus, .search-input:focus, .wizard-input:focus {
  border-color: rgba(225,48,108,0.62) !important;
  box-shadow: 0 0 0 3px rgba(225,48,108,0.12);
}

.chip.active, .radio-opt.active, .type-tab.active, .lib-filter.active {
  background: rgba(225,48,108,0.14) !important;
  border-color: rgba(225,48,108,0.38) !important;
  color: #f3f4ff !important;
}
.chip:hover, .radio-opt:hover { border-color: rgba(225,48,108,0.34); }
.step-num, .rstat-item.accent .rstat-val, .char-stat.accent .cs-val, .char-niche-tag {
  color: #a5b4fc;
}
.char-niche-tag {
  background: rgba(225,48,108,0.10);
  border-color: rgba(225,48,108,0.22);
}
.char-voice-badge { background: rgba(225,48,108,0.88); }
.char-quick-post-btn {
  background: linear-gradient(180deg, #828fff, #5e6ad2);
  color: #fff;
  box-shadow: 0 10px 26px rgba(94,106,210,0.2);
}

@media (max-width: 920px) {
  body { overflow: auto; display: block; }
  #sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    min-height: auto;
    z-index: 200;
    background: #050505;
    border-bottom: 1px solid var(--card-border);
  }
  .sidebar-logo { padding: 14px 16px; }
  .sidebar-nav {
    overflow-x: auto;
    flex-direction: row;
    padding: 8px 10px 12px;
  }
  .nav-item { flex: 0 0 auto; min-width: max-content; }
  .nav-separator, .sidebar-footer { display: none; }
  #main { margin-left: 0; height: auto; min-height: 100vh; overflow: visible; }
  #top-header { position: sticky; top: 0; z-index: 90; padding: 0 18px; }
  .section { padding: 18px; overflow: visible; }
}

@media (max-width: 640px) {
  #page-title { font-size: 18px; }
  .command-hero { padding: 18px; }
  .command-copy h2 { font-size: 25px; line-height: 1.05; }
  .command-actions { width: 100%; }
  .command-actions .btn { flex: 1 1 100%; justify-content: center; }
  .stats-grid, .section-row { grid-template-columns: 1fr; }
}

/* ─── Benchmark SaaS ─────────────────────────────────────────────────────── */
.benchmark-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(225,48,108,0.14), rgba(13,14,17,0.96));
}
.bench-eyebrow {
  font-size: 11px;
  color: var(--accent-hover);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
  margin-bottom: 8px;
}
.benchmark-hero h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.4px; }
.benchmark-hero p { margin: 0; color: var(--text-muted); max-width: 620px; line-height: 1.5; }
.bench-score {
  min-width: 150px;
  border: 1px solid rgba(225,48,108,0.35);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  background: rgba(225,48,108,0.12);
}
.bench-score strong { display:block; font-size: 34px; color: var(--accent-hover); line-height: 1; }
.bench-score span { display:block; font-size: 12px; font-weight: 800; margin-top: 8px; }
.bench-score small { display:block; font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.benchmark-grid { display: grid; grid-template-columns: 1.45fr 0.9fr; gap: 16px; margin-bottom: 16px; }
.bench-card { padding: 18px; }
.bench-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom: 14px; }
.bench-card-head h3 { margin:0; font-size:16px; }
.bench-card-head span { color: var(--text-muted); font-size: 12px; }
.bench-compare-table { display:flex; flex-direction:column; gap: 8px; }
.bench-row { display:grid; grid-template-columns: 1.1fr 0.75fr 1.5fr 0.8fr; gap:10px; align-items:center; padding:10px 12px; background: rgba(255,255,255,0.035); border:1px solid var(--card-border); border-radius: 12px; font-size:12px; }
.bench-row.head { background: transparent; border:0; color: var(--text-dim); font-size: 10px; text-transform: uppercase; letter-spacing: .7px; font-weight: 800; padding-top: 0; }
.bench-status { width: fit-content; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.bench-status.ok { color: #34d399; background: rgba(16,185,129,0.12); }
.bench-status.missing { color: var(--rose-400); background: rgba(225,29,72,0.12); }
.bench-signal-list { display:flex; flex-direction:column; gap:10px; }
.bench-signal { display:grid; grid-template-columns: 1fr auto; gap:8px 10px; padding:12px; border:1px solid var(--card-border); border-radius: 12px; background: rgba(255,255,255,0.035); }
.bench-signal strong { display:block; font-size:13px; margin-bottom:4px; }
.bench-signal small { display:block; color: var(--text-muted); line-height: 1.35; }
.bench-signal em { grid-column: 1 / -1; color: var(--text-dim); font-style: normal; font-size: 11px; }
.bench-pill { height: fit-content; padding: 4px 8px; border-radius:999px; font-size:10px; font-weight:800; text-transform:uppercase; }
.bench-pill.todo { color: var(--rose-400); background: rgba(225,29,72,0.12); }
.bench-pill.partial { color: var(--gold-400); background: rgba(217,119,6,0.12); }
.benchmark-flow { padding: 18px; }
.premium-flow { display:grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap:10px; }
.premium-step { padding:14px; border:1px solid var(--card-border); border-radius: 14px; background: rgba(255,255,255,0.035); }
.premium-step b { display:flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:50%; background: rgba(225,48,108,0.18); color: var(--accent-hover); margin-bottom:10px; }
.premium-step strong { display:block; font-size:13px; margin-bottom:5px; }
.premium-step small { display:block; color: var(--text-muted); font-size:11px; line-height:1.35; }
@media (max-width: 1100px) {
  .benchmark-grid, .premium-flow { grid-template-columns: 1fr; }
  .benchmark-hero { flex-direction: column; align-items: stretch; }
  .bench-row { grid-template-columns: 1fr; }
}

/* ═══ SPECTRUM NOIR — détails dégradé Instagram (refonte 2026-06-12) ═══ */
:root {
  --ig-gradient: linear-gradient(90deg,#405DE6,#833AB4,#E1306C,#F77737,#FCAF45);
  --ring-gradient: linear-gradient(45deg,#FEDA75,#FA7E1E,#D62976,#962FBF,#4F5BD5);
}
.grad-text { background: var(--ig-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spectrum-hairline { height: 1px; border: 0; background: linear-gradient(90deg,transparent,#405DE6,#833AB4,#E1306C,#F77737,#FCAF45,transparent); }
.ig-ring { background: var(--ring-gradient); border-radius: 50%; padding: 3px; display: inline-block; }
.ig-ring > * { border-radius: 50%; display: block; border: 3px solid var(--bg); }
.xp-bar-fill, .progress-fill { background: var(--ig-gradient) !important; }

.logo-grad { background: var(--ig-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* ═══ Coût visible avant génération (LAUNCH_BOARD P0.6) ═══ */
.cost-notice {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-size: 12px; color: var(--text-muted);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border, #1E1E22);
  border-radius: 8px; padding: 8px 12px; margin-bottom: 10px;
}
.cost-notice b { color: var(--text, #fff); font-weight: 600; }
.cost-notice-blocked { border-color: rgba(225,29,72,0.45); background: rgba(225,29,72,0.06); }

/* ═══ Identity Lock visible (chantier Apple n°5) ═══ */
.char-lock-badge {
  font-size: 10px; font-weight: 600; letter-spacing: .3px;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(5,5,5,0.72); color: #9BA3B0; border: 1px dashed #3A3A40;
  backdrop-filter: blur(6px); width: fit-content;
}
.char-lock-badge.locked { color: #FCAF45; border: 1px solid rgba(252,175,69,0.45); }

/* ═══ Première victoire — onboarding guidé (chantier Apple n°2) ═══ */
.onboard-preview {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin: 14px 0 22px; font-size: 12.5px; color: var(--text-muted, #9BA3B0);
}
.onboard-preview b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; margin-right: 6px;
  background: var(--ig-gradient); color: #fff; font-size: 10px;
}
.onboard-sep { color: #3A3A40; }
.onboard-progress {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: rgba(255,255,255,0.03); border: 1px solid #1E1E22;
  border-radius: 12px; padding: 12px 16px; margin: 14px 0 10px;
  font-size: 12.5px; color: #9BA3B0;
}
.onboard-progress b { color: #fff; }
.onboard-progress-bar {
  flex: 1; min-width: 120px; height: 6px; border-radius: 999px;
  background: rgba(255,255,255,0.06); overflow: hidden;
}
.onboard-progress-bar div { height: 100%; border-radius: 999px; background: var(--ig-gradient); transition: width .4s ease; }
.onboard-progress-hint { white-space: nowrap; }
.pipeline-step.next { border-color: #E1306C !important; box-shadow: 0 0 0 1px rgba(225,48,108,0.35), 0 4px 18px rgba(225,48,108,0.12); }
.pipeline-step.next .pipe-action { color: #E1306C; font-weight: 700; }

/* ═══ Micro-interactions globales (chantier Apple n°6) ═══ */
.btn, button { transition: transform .12s ease, box-shadow .15s ease, background .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #E1306C; outline-offset: 2px;
}
.card, .char-card, .post { transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.modal-box { animation: modal-in .18s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.toast { animation: toast-in .2s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ═══ Confort mobile (chantier Apple n°7) ═══ */
@media (max-width: 640px) {
  .btn, .subtab, .char-quick-post-btn { min-height: 42px; }
  .btn-sm { min-height: 38px; }
  .cost-notice { flex-direction: column; align-items: flex-start; gap: 4px; }
  .onboard-progress { flex-direction: column; align-items: stretch; gap: 8px; }
  .onboard-progress-hint { white-space: normal; }
  .form-row { grid-template-columns: 1fr !important; }
  .modal-box { max-width: calc(100vw - 24px) !important; margin: 0 12px; }
}

/* ═══ Dashboard Revenus (refonte 2026-06-13) ═══ */
.rev-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.rev-setup-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(225,48,108,0.08), rgba(64,93,230,0.06));
  border: 1px solid rgba(225,48,108,0.25); border-radius: 14px; padding: 14px 18px; margin-bottom: 18px;
}
.rev-setup-banner strong { display: block; font-size: 13.5px; margin-bottom: 3px; }
.rev-setup-banner span { font-size: 12px; color: var(--text-muted); line-height: 1.6; }
.rev-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.rev-kpi { background: var(--surface, #0E0E10); border: 1px solid #1E1E22; border-radius: 14px; padding: 16px 18px; }
.rev-kpi.accent { background: linear-gradient(var(--surface, #0E0E10), var(--surface, #0E0E10)) padding-box, var(--ig-gradient) border-box; border: 1px solid transparent; }
.rev-kpi-label { display: block; font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.rev-kpi-value { display: block; font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.rev-kpi-note { display: block; font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.rev-chart-card { margin-bottom: 16px; }
.rev-card-title { font-size: 12px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.rev-chart { display: flex; align-items: flex-end; gap: 3px; height: 120px; }
.rev-bar-col { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.rev-bar { width: 100%; border-radius: 3px 3px 0 0; background: var(--ig-gradient); opacity: 0.85; transition: opacity .15s; min-height: 2px; }
.rev-bar-col:hover .rev-bar { opacity: 1; }
.rev-chart-x { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-dim, #3A3A40); margin-top: 8px; }
.rev-two-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 16px; }
.rev-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #1A1A1E; font-size: 13px; }
.rev-row:last-child { border-bottom: none; }
.rev-row-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rev-row-bar { flex: 1; height: 6px; background: rgba(255,255,255,0.05); border-radius: 999px; overflow: hidden; }
.rev-row-bar div { height: 100%; border-radius: 999px; background: var(--ig-gradient); }
.rev-empty { text-align: center; padding: 28px 16px; color: var(--text-muted); font-size: 13px; line-height: 1.7; }
.rev-empty-sm { font-size: 12px; color: var(--text-muted); padding: 10px 0; line-height: 1.6; }
