/* ═══════════════════════════════════════════════════════════════════
   StudioWClip — Premium SaaS UI
   ═══════════════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --bg:          #09090B;
  --card:        #12121A;
  --card2:       #16161F;
  --border:      #2A2A35;
  --border2:     #1E1E28;
  --text:        #FFFFFF;
  --text2:       #A1A1AA;
  --text3:       #71717A;
  --pink:        #EC4899;
  --pink-dim:    rgba(236,72,153,.15);
  --purple:      #7C3AED;
  --purple-dim:  rgba(124,58,237,.15);
  --blue:        #3B82F6;
  --blue-dim:    rgba(59,130,246,.15);
  --green:       #22C55E;
  --green-dim:   rgba(34,197,94,.15);
  --orange:      #F59E0B;
  --orange-dim:  rgba(245,158,11,.15);
  --sidebar-w:   260px;
  --radius:      14px;
  --radius-sm:   8px;
  --transition:  .2s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3A3A4A; }

/* ═══════════════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════════════ */
.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: rgba(18,18,26,.97);
  border-right: 1px solid var(--border2);
  backdrop-filter: blur(20px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--transition);
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 14px;
  overflow-y: auto;
  gap: 4px;
}

/* Logo */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 12px;
}
.logo-icon { flex-shrink: 0; }
.logo-name { font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; }
.logo-accent {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-tagline {
  font-size: .72rem;
  color: var(--text3);
  line-height: 1.5;
  padding: 0 8px 16px;
}

/* CTA button */
.btn-new-project {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}
.btn-new-project::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  opacity: 0;
  transition: opacity var(--transition);
}
.btn-new-project:hover::before { opacity: 1; }
.btn-new-project:hover {
  box-shadow: 0 0 24px rgba(124,58,237,.5), 0 0 40px rgba(236,72,153,.2);
  transform: translateY(-1px);
}
.btn-new-project > * { position: relative; z-index: 1; }
.btn-icon { width: 16px; height: 16px; }

/* Nav */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text2);
  font-size: .85rem;
  font-weight: 500;
  transition: all var(--transition);
  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,.05); color: var(--text); }
.nav-item.active {
  background: linear-gradient(135deg, rgba(124,58,237,.2), rgba(236,72,153,.1));
  color: var(--text);
  border: 1px solid rgba(124,58,237,.3);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 25%; bottom: 25%;
  width: 3px;
  background: linear-gradient(180deg, var(--purple), var(--pink));
  border-radius: 0 2px 2px 0;
}

.nav-badge {
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 20px;
  background: var(--border);
  color: var(--text2);
}
.nav-badge-green { background: var(--green-dim); color: var(--green); }

.sidebar-spacer { flex: 1; min-height: 16px; }

/* Studio Wasquehal card */
.studio-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 8px;
}
.studio-logo { height: 32px; object-fit: contain; margin-bottom: 8px; filter: brightness(.9); }
.studio-label {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text3);
  margin-bottom: 6px;
}
.studio-desc { font-size: .72rem; color: var(--text3); line-height: 1.55; }

/* User card */
.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border2);
  background: rgba(255,255,255,.02);
  cursor: pointer;
  transition: background var(--transition);
}
.user-card:hover { background: rgba(255,255,255,.05); }
.user-avatar {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700;
  flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: .78rem; font-weight: 600; truncate: ellipsis; white-space: nowrap; overflow: hidden; }
.user-role { font-size: .68rem; color: var(--text3); }
.user-chevron { width: 14px; height: 14px; color: var(--text3); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════════════ */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  max-width: 1340px;
  padding: 32px 32px 0;
}

/* Mobile toggle */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 16px; left: 16px;
  z-index: 200;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.sidebar-toggle svg { width: 18px; height: 18px; }

/* ═══════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 480px;
  padding: 24px 0 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(124,58,237,.15), rgba(236,72,153,.1));
  border: 1px solid rgba(124,58,237,.3);
  font-size: .75rem;
  color: var(--text2);
  margin-bottom: 20px;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.85); }
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.04em;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}
.hero-word-white { color: var(--text); }
.hero-word-pink {
  background: linear-gradient(135deg, var(--pink), #F472B6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-word-purple {
  background: linear-gradient(135deg, var(--purple), #A78BFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: .95rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary:hover {
  opacity: .9;
  box-shadow: 0 0 24px rgba(124,58,237,.5);
  transform: translateY(-1px);
}
.btn-primary.btn-sm { padding: 8px 16px; font-size: .8rem; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-family: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-secondary:hover { background: rgba(255,255,255,.08); border-color: var(--border); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  font-family: inherit;
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-outline:hover { background: rgba(255,255,255,.04); color: var(--text); }
.btn-outline.btn-full { width: 100%; justify-content: center; margin-top: 8px; }
.btn-outline.btn-sm { padding: 6px 12px; font-size: .75rem; }
.btn-outline.btn-xs { padding: 4px 10px; font-size: .72rem; }

.btn-ghost {
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text2);
  font-family: inherit;
  font-size: .875rem;
  cursor: pointer;
  transition: color var(--transition);
}
.btn-ghost:hover { color: var(--text); }

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text3);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.icon-btn:hover { background: rgba(255,255,255,.05); color: var(--text); }
.icon-btn svg { width: 14px; height: 14px; }

.btn-icon-sm { width: 14px; height: 14px; }

/* ── Hero visual ── */
.hero-right { position: relative; display: flex; align-items: center; justify-content: center; }

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .3;
  animation: floatBlob 6s ease-in-out infinite;
}
.glow-pink { width: 280px; height: 280px; background: var(--pink); top: -20%; right: -10%; animation-delay: 0s; }
.glow-purple { width: 240px; height: 240px; background: var(--purple); bottom: -10%; left: 5%; animation-delay: -3s; }
@keyframes floatBlob {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(15px,-15px) scale(1.05); }
}

.hero-screen {
  position: relative;
  z-index: 2;
  width: 90%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.05);
}
.screen-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--border2);
}
.screen-dots { display: flex; gap: 5px; }
.screen-dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border);
}
.screen-dots span:nth-child(1) { background: #FF5F57; }
.screen-dots span:nth-child(2) { background: #FEBC2E; }
.screen-dots span:nth-child(3) { background: #28C840; }
.screen-title { flex: 1; font-size: .72rem; color: var(--text3); text-align: center; }
.screen-time { font-size: .72rem; color: var(--text3); font-variant-numeric: tabular-nums; }

.screen-video { padding: 0; }
.video-placeholder {
  position: relative;
  background: linear-gradient(135deg, #0D0D18, #1A0E2E);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(124,58,237,.2) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(236,72,153,.15) 0%, transparent 60%);
}
.video-play-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative; z-index: 1;
}
.video-play-btn svg { width: 20px; height: 20px; color: white; }
.video-play-btn:hover { background: rgba(255,255,255,.2); transform: scale(1.05); }

.video-overlay-text {
  position: absolute;
  bottom: 12px; left: 12px;
  font-size: .65rem;
  color: rgba(255,255,255,.6);
  background: rgba(0,0,0,.4);
  padding: 3px 8px;
  border-radius: 4px;
  display: flex; align-items: center; gap: 5px;
}
.video-overlay-text::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green);
  animation: pulse 1.5s infinite;
}

.ai-markers {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,.05);
}
.ai-marker {
  position: absolute;
  top: -3px;
  width: 2px; height: 9px;
  background: var(--pink);
  border-radius: 1px;
  box-shadow: 0 0 6px var(--pink);
}

.screen-waveform { padding: 8px 12px; background: rgba(0,0,0,.2); }
.screen-waveform svg { display: block; width: 100%; }

/* Social orbit */
.social-orbit { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.social-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  transform: translate(
    calc(-50% + cos(var(--angle)) * var(--dist)),
    calc(-50% + sin(var(--angle)) * var(--dist))
  );
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  animation: orbitFloat 4s ease-in-out infinite;
}
.social-icon svg { width: 20px; height: 20px; }

.social-instagram { background: linear-gradient(135deg,#F58529,#DD2A7B,#515BD4); color: white; animation-delay: 0s; }
.social-tiktok { background: #000; color: white; border: 1px solid #333; animation-delay: -.8s; }
.social-youtube { background: #FF0000; color: white; animation-delay: -1.6s; }
.social-facebook { background: #1877F2; color: white; animation-delay: -2.4s; }

@keyframes orbitFloat {
  0%,100% { transform: translate(calc(-50% + cos(var(--angle)) * var(--dist)), calc(-50% + sin(var(--angle)) * var(--dist))) scale(1); }
  50% { transform: translate(calc(-50% + cos(var(--angle)) * var(--dist)), calc(-50% + sin(var(--angle)) * var(--dist))) scale(1.08) translateY(-4px); }
}

/* Light streams SVG */
.light-streams {
  position: absolute;
  inset: -20%;
  width: 140%; height: 140%;
  z-index: 1;
  pointer-events: none;
  opacity: .7;
}
.stream {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: streamDraw 3s ease-in-out infinite;
}
.stream-1 { animation-delay: 0s; }
.stream-2 { animation-delay: .5s; }
.stream-3 { animation-delay: 1s; }
.stream-4 { animation-delay: 1.5s; }
@keyframes streamDraw {
  0% { stroke-dashoffset: 100; opacity: 0; }
  30% { opacity: 1; }
  70% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -100; opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════
   PIPELINE IA
   ═══════════════════════════════════════════════════════════════════ */
.pipeline-section {
  padding: 0 0 40px;
}
.section-header { text-align: center; margin-bottom: 28px; }
.section-title { font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
.section-sub { font-size: .875rem; color: var(--text2); }

.pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 4px;
}

.pipeline-card {
  flex: 1;
  min-width: 120px;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
  cursor: default;
}
.pipeline-card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}

.pipeline-num {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.pipeline-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin: 8px auto 12px;
}
.pipeline-icon svg { width: 20px; height: 20px; }
.pipeline-card h3 { font-size: .82rem; font-weight: 600; margin-bottom: 5px; }
.pipeline-card p { font-size: .72rem; color: var(--text3); line-height: 1.5; }

.pipeline-purple { border-top: 2px solid var(--purple); }
.pipeline-purple .pipeline-num { background: var(--purple-dim); color: var(--purple); }
.pipeline-purple .pipeline-icon { background: var(--purple-dim); color: var(--purple); }

.pipeline-blue { border-top: 2px solid var(--blue); }
.pipeline-blue .pipeline-num { background: var(--blue-dim); color: var(--blue); }
.pipeline-blue .pipeline-icon { background: var(--blue-dim); color: var(--blue); }

.pipeline-pink { border-top: 2px solid var(--pink); }
.pipeline-pink .pipeline-num { background: var(--pink-dim); color: var(--pink); }
.pipeline-pink .pipeline-icon { background: var(--pink-dim); color: var(--pink); }

.pipeline-orange { border-top: 2px solid var(--orange); }
.pipeline-orange .pipeline-num { background: var(--orange-dim); color: var(--orange); }
.pipeline-orange .pipeline-icon { background: var(--orange-dim); color: var(--orange); }

.pipeline-green { border-top: 2px solid var(--green); }
.pipeline-green .pipeline-num { background: var(--green-dim); color: var(--green); }
.pipeline-green .pipeline-icon { background: var(--green-dim); color: var(--green); }

.pipeline-connector {
  flex-shrink: 0;
  width: 20px;
  display: flex; align-items: center; justify-content: center;
}
.connector-line {
  height: 2px;
  width: 20px;
  background: linear-gradient(90deg, var(--border2), var(--border));
  position: relative;
}
.connector-line::after {
  content: '';
  position: absolute;
  right: -4px; top: -3px;
  width: 0; height: 0;
  border-left: 5px solid var(--border);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* ═══════════════════════════════════════════════════════════════════
   CONTENT GRID
   ═══════════════════════════════════════════════════════════════════ */
.content-grid {
  display: grid;
  grid-template-columns: 240px 1fr 260px;
  gap: 16px;
  padding-bottom: 32px;
  align-items: start;
}

.card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 16px;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.card-title { font-size: .9rem; font-weight: 600; }

/* Project list */
.project-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }

.project-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  border: 1px solid transparent;
}
.project-item:hover { background: rgba(255,255,255,.03); }
.project-item.active { background: rgba(124,58,237,.08); border-color: rgba(124,58,237,.2); }

.project-thumb {
  width: 36px; height: 36px;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--border);
}
.thumb-blue { background: linear-gradient(135deg, #1D4ED8, #3B82F6); }
.thumb-purple { background: linear-gradient(135deg, #6D28D9, #7C3AED); }
.thumb-pink { background: linear-gradient(135deg, #BE185D, #EC4899); }
.thumb-orange { background: linear-gradient(135deg, #B45309, #F59E0B); }
.thumb-green { background: linear-gradient(135deg, #15803D, #22C55E); }

.project-info { flex: 1; min-width: 0; }
.project-name { font-size: .78rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-meta { font-size: .68rem; color: var(--text3); margin-top: 1px; }

.project-status {
  font-size: .62rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.status-done { background: rgba(34,197,94,.12); color: var(--green); }
.status-process { background: rgba(245,158,11,.12); color: var(--orange); }

/* Project detail */
.project-detail-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border2);
  margin-bottom: 14px;
}
.project-detail-thumb {
  width: 60px; height: 40px;
  border-radius: 6px;
  background: linear-gradient(135deg, #1D4ED8, #7C3AED);
  flex-shrink: 0;
}
.project-detail-info { flex: 1; min-width: 0; }
.project-detail-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.project-detail-title {
  font-size: .95rem;
  font-weight: 600;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.project-detail-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  color: var(--text2);
}
.project-detail-meta svg { width: 12px; height: 12px; }

.status-pill {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .68rem;
  font-weight: 600;
}
.status-done-pill { background: rgba(34,197,94,.12); color: var(--green); }

/* Tabs */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border2);
  margin-bottom: 16px;
  overflow-x: auto;
}
.tab {
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--text3);
  font-family: inherit;
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
  white-space: nowrap;
}
.tab:hover { color: var(--text2); }
.tab.active {
  color: var(--text);
  border-bottom-color: var(--purple);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Timeline */
.timeline-section { margin-bottom: 20px; }
.timeline-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  color: var(--text2);
  font-weight: 600;
  margin-bottom: 10px;
}
.timeline-label svg { width: 13px; height: 13px; color: var(--orange); }

.timeline-track {
  background: rgba(0,0,0,.2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.timeline-thumbnails {
  display: flex;
  height: 48px;
  overflow: hidden;
}
.timeline-thumb {
  flex: 1;
  border-right: 1px solid rgba(255,255,255,.04);
}
.t1 { background: linear-gradient(135deg, #1D4ED8, #3B82F6); opacity: .7; }
.t2 { background: linear-gradient(135deg, #3B82F6, #6D28D9); opacity: .6; }
.t3 { background: linear-gradient(135deg, #6D28D9, #7C3AED); opacity: .7; }
.t4 { background: linear-gradient(135deg, #7C3AED, #BE185D); opacity: .6; }
.t5 { background: linear-gradient(135deg, #BE185D, #EC4899); opacity: .7; }
.t6 { background: linear-gradient(135deg, #EC4899, #F59E0B); opacity: .6; }
.t7 { background: linear-gradient(135deg, #F59E0B, #22C55E); opacity: .7; }
.t8 { background: linear-gradient(135deg, #22C55E, #15803D); opacity: .6; }

.timeline-waveform { padding: 6px 8px; border-top: 1px solid var(--border2); }

.timeline-markers {
  position: relative;
  height: 20px;
  border-top: 1px solid var(--border2);
}
.timeline-marker {
  position: absolute;
  top: 2px;
  transform: translateX(-50%);
  width: 18px; height: 18px;
  background: var(--pink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .55rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: transform var(--transition);
}
.timeline-marker:hover { transform: translateX(-50%) scale(1.2); }

.timeline-timestamps {
  display: flex;
  justify-content: space-between;
  padding: 4px 8px;
  font-size: .62rem;
  color: var(--text3);
  border-top: 1px solid var(--border2);
}

/* Clips */
.clips-section { }
.clips-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.clips-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text2);
}
.clips-label svg { width: 13px; height: 13px; color: var(--orange); }

.clips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.clip-card {
  background: var(--card2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
}
.clip-card:hover {
  border-color: rgba(124,58,237,.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}

.clip-thumb {
  position: relative;
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
}
.clip-blue { background: linear-gradient(135deg, #1D4ED8, #3B82F6); }
.clip-purple { background: linear-gradient(135deg, #6D28D9, #7C3AED); }
.clip-pink { background: linear-gradient(135deg, #BE185D, #EC4899); }
.clip-orange { background: linear-gradient(135deg, #B45309, #F59E0B); }
.clip-green { background: linear-gradient(135deg, #15803D, #22C55E); }

.clip-play {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.clip-play svg { width: 12px; height: 12px; color: white; }
.clip-card:hover .clip-play { opacity: 1; }

.clip-duration {
  position: absolute;
  bottom: 4px; right: 4px;
  font-size: .6rem;
  font-weight: 600;
  color: white;
  background: rgba(0,0,0,.5);
  padding: 1px 5px;
  border-radius: 3px;
}
.clip-num {
  position: absolute;
  top: 4px; left: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  font-size: .6rem;
  font-weight: 700;
  color: white;
  display: flex; align-items: center; justify-content: center;
}
.clip-info { padding: 6px 8px; }
.clip-title { font-size: .68rem; color: var(--text2); line-height: 1.4; }

/* Transcription placeholder */
.transcript-placeholder {
  text-align: center;
  padding: 48px 24px;
  color: var(--text3);
}
.transcript-placeholder svg { width: 32px; height: 32px; margin-bottom: 12px; opacity: .4; }
.transcript-placeholder p { font-size: .85rem; }

/* ── Exports column ── */
.export-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border2);
}
.export-item:last-of-type { border-bottom: none; }

.export-thumb {
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, #1D4ED8, #7C3AED);
  display: flex; align-items: flex-end; justify-content: flex-end;
  position: relative;
  padding: 4px;
}
.export-vertical { width: 32px; height: 56px; }
.export-square { width: 48px; height: 48px; }
.export-horizontal { width: 72px; height: 40px; }

.export-preview-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: .42rem;
  color: rgba(255,255,255,.9);
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.export-logo-badge {
  font-size: .45rem;
  font-weight: 900;
  color: rgba(255,255,255,.7);
  position: absolute;
  bottom: 3px; left: 3px;
}

.export-info { flex: 1; min-width: 0; }
.export-format-badge {
  display: inline-flex;
  font-size: .62rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  margin-bottom: 3px;
}
.badge-pink { background: var(--pink-dim); color: var(--pink); }
.badge-purple { background: var(--purple-dim); color: var(--purple); }
.badge-blue { background: var(--blue-dim); color: var(--blue); }

.export-res { font-size: .68rem; color: var(--text3); }
.export-dur {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: .68rem;
  color: var(--text3);
}
.export-dur svg { width: 10px; height: 10px; }

.export-dl-btn {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text3);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.export-dl-btn:hover { background: var(--purple-dim); color: var(--purple); border-color: rgba(124,58,237,.3); }
.export-dl-btn svg { width: 13px; height: 13px; }

.export-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 14px;
  margin-top: 6px;
  border-top: 1px solid var(--border2);
}
.stat-item { text-align: center; }
.stat-val {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: .62rem; color: var(--text3); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.footer {
  margin: 0 -32px;
  padding: 20px 32px;
  border-top: 1px solid var(--border2);
  background: rgba(255,255,255,.01);
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text2);
  white-space: nowrap;
  flex-shrink: 0;
}
.footer-text { font-size: .72rem; color: var(--text3); line-height: 1.6; }
.footer-text strong { color: var(--text2); }

/* ═══════════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.show { opacity: 1; pointer-events: all; }

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  width: 100%;
  max-width: 480px;
  padding: 24px;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  transform: translateY(8px);
  transition: transform var(--transition);
}
.modal-overlay.show .modal { transform: translateY(0); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.modal-header h3 { font-size: 1rem; font-weight: 700; }

.modal-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  padding: 4px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}
.modal-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text3);
  font-family: inherit;
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.modal-tab svg { width: 14px; height: 14px; }
.modal-tab.active { background: var(--card); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.3); }

.modal-section { display: none; }
.modal-section.active { display: block; }

.dropzone-modal {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(255,255,255,.02);
}
.dropzone-modal:hover, .dropzone-modal.drag-over {
  border-color: var(--purple);
  background: var(--purple-dim);
}
.dropzone-icon { margin-bottom: 12px; }
.dropzone-icon svg { width: 36px; height: 36px; color: var(--text3); }
.dropzone-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: .85rem;
  color: var(--text2);
}
.dropzone-text strong { color: var(--text); font-size: .95rem; }
.dropzone-text small { color: var(--text3); font-size: .72rem; }

.file-info {
  margin-top: 10px;
  font-size: .78rem;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
}

.yt-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
}
.yt-input-wrapper svg { width: 16px; height: 16px; color: var(--text3); flex-shrink: 0; }
.yt-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: .875rem;
  padding: 12px 0;
}
.yt-input::placeholder { color: var(--text3); }

.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

/* Progress */
.modal-progress {
  display: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border2);
}
.modal-progress.show { display: block; }

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 1;
  position: relative;
}
.progress-step::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: var(--border2);
}
.progress-step:last-child::after { display: none; }
.progress-step.active::after { background: linear-gradient(90deg, var(--purple), var(--border2)); }
.progress-step.done::after { background: var(--purple); }

.step-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  transition: all var(--transition);
}
.step-icon svg { width: 14px; height: 14px; color: var(--text3); }
.progress-step.active .step-icon { border-color: var(--purple); background: var(--purple-dim); }
.progress-step.active .step-icon svg { color: var(--purple); }
.progress-step.done .step-icon { border-color: var(--green); background: var(--green-dim); }
.progress-step.done .step-icon svg { color: var(--green); }
.progress-step span { font-size: .62rem; color: var(--text3); }

.progress-bar-wrapper {
  height: 4px;
  background: var(--border2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  border-radius: 2px;
  width: 0%;
  transition: width .5s ease;
}
.progress-status { font-size: .78rem; color: var(--text2); text-align: center; }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .content-grid {
    grid-template-columns: 220px 1fr 220px;
  }
  .clips-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .hero-right { max-width: 480px; margin: 0 auto; width: 100%; }
  .content-grid { grid-template-columns: 1fr; }
  .col-projects, .col-exports { max-width: 100%; }
  .clips-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: flex; }
  .main-content { margin-left: 0; padding: 80px 16px 0; }
  .hero { padding: 16px 0 32px; }
  .hero-title { font-size: 2.4rem; }
  .pipeline { gap: 0; }
  .pipeline-connector { width: 12px; }
  .pipeline-connector .connector-line { width: 12px; }
  .clips-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions button { width: 100%; justify-content: center; }
  .clips-grid { grid-template-columns: 1fr 1fr; }
  .pipeline-card { min-width: 90px; padding: 14px 8px; }
  .pipeline-card h3 { font-size: .72rem; }
  .pipeline-card p { font-size: .62rem; }
}
﻿
.user-avatar-img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.user-menu {
  margin-top: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border2);
  background: var(--surface2);
  overflow: hidden;
}
.user-menu-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  font-size: .82rem; color: var(--text2);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.user-menu-item:hover { background: rgba(255,255,255,.05); color: var(--text1); }
.user-menu-logout { color: #EF4444; }
.user-menu-logout:hover { background: rgba(239,68,68,.08); color: #EF4444; }
.user-menu-item i { width: 15px; height: 15px; }