/* ==========================================================================
   World Vox — Universal Cross-Border Social & Creator Platform
   Design System: Deep Obsidian, World Vox Flame (Coral/Pink), Ambient Glassmorphism
   ========================================================================== */

:root {
  --bg-primary: #080b11;
  --bg-surface: rgba(15, 20, 34, 0.75);
  --bg-surface-elevated: rgba(23, 31, 52, 0.85);
  --bg-input: rgba(10, 14, 24, 0.8);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 78, 107, 0.4);
  --border-glow: 0 0 24px rgba(255, 78, 107, 0.2);
  
  --color-brand: #FF4E6B;
  --color-brand-glow: rgba(255, 78, 107, 0.35);
  --color-accent: #FF6E8C;
  --color-accent-pink: #FF4E6B;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
  
  --font-sans: 'Inter', Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', sans-serif;
  --backdrop-blur: blur(28px);
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body, button, input, select, textarea, optgroup, option {
  font-family: var(--font-sans) !important;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans) !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Matrix / Glow Background Canvas */
#ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background: radial-gradient(circle at 15% 20%, rgba(255, 78, 107, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 85% 75%, rgba(255, 110, 140, 0.08) 0%, transparent 45%);
}

/* RAINING MATRIX CANVAS (Cyberpunk code rain) */
.matrix-canvas, #matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  opacity: 0.35;
  pointer-events: none;
  background: transparent;
}

/* ==========================================================================
   Header & Navigation Bar
   ========================================================================== */
.wv-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(8, 11, 17, 0.82);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--border-subtle);
}

.wv-logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.wv-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px var(--color-brand-glow);
}

.wv-logo-icon svg {
  width: 18px;
  height: 18px;
  fill: #080b11;
}

.wv-logo-text {
  display: flex;
  flex-direction: column;
}

.wv-logo-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff 40%, var(--color-brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wv-logo-tagline {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Nav Switch Pills */
.wv-nav-pills {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.wv-nav-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.wv-nav-pill:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.wv-nav-pill.active {
  background: linear-gradient(135deg, rgba(255, 78, 107, 0.15), rgba(255, 110, 140, 0.15));
  color: #ffffff;
  border: 1px solid var(--border-active);
  box-shadow: 0 0 16px rgba(255, 78, 107, 0.2);
}

/* Nav Actions Right */
.wv-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wv-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.wv-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.wv-btn-primary {
  background: linear-gradient(135deg, var(--color-brand) 0%, #FF6E8C 100%);
  border: none;
  color: #080b11;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 4px 18px var(--color-brand-glow);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.wv-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 78, 107, 0.5);
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.wv-container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px 80px 24px;
  position: relative;
  z-index: 50;
  flex: 1 0 auto;
}

.wv-view {
  display: none;
  animation: fadeIn 0.3s ease-out forwards;
}

.wv-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   VIEW 1: WORLD VOX STUDIO (CREATOR B2B SaaS)
   ========================================================================== */
.studio-hero {
  text-align: center;
  max-width: 840px;
  margin: 16px auto 36px auto;
}

.studio-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 78, 107, 0.08);
  border: 1px solid rgba(255, 78, 107, 0.25);
  color: var(--color-brand);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.studio-title {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.studio-title span {
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.studio-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Universal URL Drop Capsule */
.studio-input-card {
  position: relative;
  z-index: 1000;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px 32px;
  backdrop-filter: var(--backdrop-blur);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  margin-bottom: 36px;
  transition: var(--transition);
}

.studio-input-card:focus-within {
  border-color: var(--color-brand);
  box-shadow: var(--border-glow);
}

.studio-input-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: 8px 12px 8px 20px;
}

.studio-input-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 1rem;
  font-family: inherit;
}

.studio-input-bar input::placeholder {
  color: var(--text-dim);
}

.studio-platform-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.8rem;
  padding-right: 8px;
  border-right: 1px solid var(--border-subtle);
}

/* Toolbar row 2: platform source chips (real, clickable) + language selector */
.studio-toolbar-row2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding: 0 4px;
}

.platform-chip-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.platform-chip-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-right: 2px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.platform-chip:hover {
  border-color: rgba(255, 78, 107, 0.35);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.07);
}

.platform-chip.active {
  background: rgba(255, 78, 107, 0.15);
  border-color: var(--color-brand);
  color: var(--color-brand);
  box-shadow: 0 0 0 1px rgba(255, 78, 107, 0.15) inset;
}

.platform-chip .chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

.platform-chip.active .chip-dot {
  opacity: 1;
}

.platform-chip-any-hint {
  font-size: 0.7rem;
  color: var(--text-faint, rgba(255,255,255,0.35));
  margin-left: 2px;
}

.studio-lang-select {
  font-family: var(--font-sans) !important;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.studio-lang-select option {
  font-family: var(--font-sans) !important;
  background: #0f1422;
  color: #fff;
}

/* Quick Example Links */
.studio-quick-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.studio-quick-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.studio-quick-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-brand);
  border-color: rgba(255, 78, 107, 0.3);
}

/* 4-Stage Asynchronous Pipeline Stepper */
.pipeline-card {
  position: relative;
  z-index: 10;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
  display: none;
}

.pipeline-card.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.pipeline-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pipeline-step {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pipeline-step.processing {
  border-color: var(--color-brand);
  background: rgba(255, 78, 107, 0.04);
}

.pipeline-step.completed {
  border-color: var(--color-success);
  background: rgba(16, 185, 129, 0.05);
}

.step-num {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.pipeline-step.processing .step-num {
  color: var(--color-brand);
}

.pipeline-step.completed .step-num {
  color: var(--color-success);
}

.step-name {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.step-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--color-brand);
  transition: width 0.3s ease;
}

.pipeline-step.completed .step-progress-bar {
  width: 100%;
  background: var(--color-success);
}

/* Studio Workspace & Side-by-Side Dual Video Player */
.studio-workspace {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  margin-top: 24px;
}

.player-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: var(--backdrop-blur);
  scroll-margin-top: 85px;
  /* Grid items default to min-width:auto, which lets their content's
     intrinsic (min-content) width force the .studio-workspace grid track
     wider than the viewport -- this is what was pushing the side panel
     off-screen on narrower widths. min-width:0 lets this track shrink to
     fit the actual available space instead. */
  min-width: 0;
}

.player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.player-title {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-frame-container {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 480px;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-frame-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-viewports-container.is-vertical .video-frame-container {
  aspect-ratio: 9/16;
  max-height: 520px;
}

.player-viewports-container.is-vertical .video-frame-container video {
  object-fit: cover;
}

.audio-track-selector {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.track-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.track-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.track-btn.active {
  background: rgba(255, 78, 107, 0.15);
  color: var(--color-brand);
  border-color: var(--color-brand);
}

/* Studio Details & Syndication Hub */
.studio-side-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* Same min-width:auto grid-blowout fix as .player-card -- see comment
     there. Without this the panel's content could also force the grid
     track (and the page) wider than the viewport. */
  min-width: 0;
}

.panel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: var(--backdrop-blur);
}

.panel-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.slang-tag-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slang-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.slang-orig {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-brand);
}

.slang-trans {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Syndication Hub */
.syndication-channel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.channel-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.channel-flag {
  font-size: 1.2rem;
}

.channel-handle {
  font-size: 0.82rem;
  font-weight: 600;
}

.channel-reach {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.channel-switch {
  appearance: none;
  width: 38px;
  height: 22px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.channel-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-radius: 50%;
  transition: var(--transition);
}

.channel-switch:checked {
  background: var(--color-success);
}

.channel-switch:checked::after {
  transform: translateX(16px);
}

/* ==========================================================================
   VIEW 2: GLOBAL SOCIAL FEED (B2C TIKTOK SANS FRONTIÈRES)
   ========================================================================== */
.feed-container {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 10px;
}

.feed-stream {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.feed-card {
  background: #000000;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  aspect-ratio: 9/16;
  max-height: 800px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
}

.feed-video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay Top: Origin & Language Capsule */
.feed-overlay-top {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.feed-origin-tag {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: var(--backdrop-blur);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.feed-audio-pill {
  background: linear-gradient(135deg, rgba(255, 78, 107, 0.3), rgba(255, 110, 140, 0.3));
  backdrop-filter: var(--backdrop-blur);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--color-brand);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 16px rgba(255, 78, 107, 0.3);
}

/* Overlay Bottom: Creator & Caption */
.feed-overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px 20px 20px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  z-index: 10;
}

.feed-creator-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.feed-creator-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--color-brand);
}

.feed-creator-name {
  font-weight: 700;
  font-size: 0.92rem;
}

.feed-follow-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.feed-caption {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #e2e8f0;
  margin-bottom: 12px;
}

/* Floating Actions Right */
.feed-actions-right {
  position: absolute;
  right: 14px;
  bottom: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 15;
}

.feed-action-btn {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: var(--transition);
}

.feed-action-btn:hover {
  transform: scale(1.1);
  border-color: var(--color-brand);
}

.feed-action-count {
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   VIEW 3: SAAS PRICING PLANS
   ========================================================================== */
.pricing-header {
  text-align: center;
  max-width: 720px;
  margin: 20px auto 48px auto;
}

.pricing-title {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.pricing-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

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

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  backdrop-filter: var(--backdrop-blur);
  transition: var(--transition);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.featured {
  border-color: var(--color-brand);
  box-shadow: 0 16px 48px rgba(255, 78, 107, 0.15);
  background: linear-gradient(180deg, rgba(15, 20, 34, 0.9) 0%, rgba(10, 15, 26, 0.95) 100%);
}

.pricing-featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-brand), var(--color-accent));
  color: #080b11;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricing-plan-name {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.pricing-plan-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  min-height: 40px;
  margin-bottom: 24px;
}

.pricing-price {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0 36px 0;
  flex: 1;
}

.pricing-feature-item {
  font-size: 0.88rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-feature-item svg {
  width: 16px;
  height: 16px;
  fill: var(--color-brand);
  flex-shrink: 0;
}

.pricing-cta {
  width: 100%;
  padding: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

/* ==========================================================================
   Mobile Bottom Bar
   ========================================================================== */
.wv-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(8, 11, 17, 0.95);
  backdrop-filter: var(--backdrop-blur);
  border-top: 1px solid var(--border-subtle);
  padding: 8px 16px;
  z-index: 100;
  justify-content: space-around;
}

.mobile-nav-item {
  background: transparent;
  border: none;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
}

.mobile-nav-item.active {
  color: var(--color-brand);
}

/* Responsive queries */
@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .studio-workspace {
    grid-template-columns: 1fr;
  }
  .pipeline-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .wv-navbar {
    padding: 12px 16px;
  }
  .wv-nav-pills {
    display: none;
  }
  .wv-mobile-nav {
    display: flex;
  }
  .studio-title {
    font-size: 2rem;
  }
  .studio-input-bar {
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-lg);
    padding: 14px;
  }
  .studio-toolbar-row2 {
    justify-content: flex-start;
  }
  .pipeline-steps {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   OFFICIAL BRAND LOGO & BADGE
   ========================================================================== */
.logo-plate {
  display: inline-flex;
  align-items: center;
  background: #dbeafe;
  padding: 4px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(255, 78, 107, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.logo-plate:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 78, 107, 0.4);
}
.brand-official-logo {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ==========================================================================
   UNIVERSAL LANGUAGE SWITCHER
   ========================================================================== */
.lang-switch-wrap {
  display: flex;
  align-items: center;
}
.lang-switch {
  font-family: var(--font-sans) !important;
  background: rgba(23, 31, 52, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
  max-width: 140px;
}
.lang-switch:hover, .lang-switch:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 10px rgba(255, 78, 107, 0.2);
}
.lang-switch option {
  font-family: var(--font-sans) !important;
  background: #080b11;
  color: #fff;
}

/* ==========================================================================
   AUTH NAVIGATION & USER CHIP
   ========================================================================== */
.nav-auth-btn {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-auth-btn:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  background: rgba(255, 78, 107, 0.08);
}
.user-chip {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(23, 31, 52, 0.9);
  border: 1px solid rgba(255, 78, 107, 0.3);
  border-radius: var(--radius-pill);
  padding: 5px 12px 5px 8px;
  font-size: 0.82rem;
  color: var(--text-main);
}
.user-chip.show {
  display: inline-flex;
}
.user-chip-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-brand);
  color: #080b11;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.72rem;
}

/* ==========================================================================
   AUTHENTICATION MODAL
   ========================================================================== */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 17, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.auth-modal-overlay.open {
  display: flex;
}
.auth-modal {
  background: #0f1422;
  border: 1px solid rgba(255, 78, 107, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 78, 107, 0.15);
  border-radius: 20px;
  padding: 2.2rem;
  width: 100%;
  max-width: 400px;
  position: relative;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.auth-modal h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: var(--text-main);
}
.auth-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s ease;
}
.auth-modal-close:hover {
  color: var(--text-main);
}
.auth-field {
  width: 100%;
  background: rgba(10, 14, 24, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
  outline: none;
  transition: var(--transition);
}
.auth-field:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 12px rgba(255, 78, 107, 0.2);
}
.auth-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--color-brand) 0%, #38bdf8 100%);
  color: #080b11;
  border: none;
  padding: 0.85rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 0.4rem;
  transition: var(--transition);
}
.auth-submit-btn:hover {
  opacity: 0.92;
  box-shadow: 0 0 16px rgba(255, 78, 107, 0.4);
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.2rem 0;
  color: var(--text-dim);
  font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}
.auth-google-btn {
  width: 100%;
  background: rgba(23, 31, 52, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.8rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: var(--transition);
}
.auth-google-btn:hover {
  background: rgba(30, 41, 69, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
}
.auth-switch {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.auth-switch button {
  background: none;
  border: none;
  color: var(--color-brand);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  margin-left: 4px;
}
.auth-switch button:hover {
  text-decoration: underline;
}
.auth-error {
  color: #ff3366;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  display: none;
  padding: 8px 12px;
  background: rgba(255, 51, 102, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 51, 102, 0.25);
}
.auth-error.show {
  display: block;
}

/* ==========================================================================
   ORIGINAL 3-COLUMN FOOTER
   ========================================================================== */
.site-footer {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: rgba(8, 11, 17, 0.96);
  backdrop-filter: var(--backdrop-blur);
  padding: 36px 28px 30px 28px;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 1160px);
  max-width: 1160px;
  margin-top: auto;
  margin-bottom: 24px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .site-footer {
    width: min(calc(100% - 4cm), 1160px);
    margin-bottom: 1cm;
  }
}
@media (min-width: 1024px) {
  .site-footer {
    width: min(calc(100% - 5cm), 1160px);
    margin-bottom: 1.2cm;
  }
}
.footer-wrap {
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.1fr 1fr 1.4fr;
  }
}
.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-made {
  font-size: 0.82rem;
  color: var(--color-brand);
  font-weight: 600;
}
.footer-col-social {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}
@media (min-width: 768px) {
  .footer-col-social {
    justify-content: center;
  }
}
.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(23, 31, 52, 0.7);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.social-icon-btn:hover {
  color: var(--color-brand);
  border-color: var(--color-brand);
  background: rgba(255, 78, 107, 0.1);
  transform: translateY(-2px);
}
.footer-col-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
@media (min-width: 768px) {
  .footer-col-legal {
    align-items: flex-end;
  }
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
@media (min-width: 768px) {
  .footer-legal-links {
    justify-content: flex-end;
  }
}
.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
}
.footer-link:hover {
  color: var(--color-brand);
  text-decoration: underline;
}
.footer-contact-link {
  color: var(--color-brand);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-contact-link:hover {
  color: #67e8f9;
  text-decoration: underline;
}

/* ==========================================================================
   OFFICIAL IUBENDA INTEGRATION: DOCKED STRICTLY INSIDE FOOTER
   ========================================================================== */
/* Hide floating Iubenda elements whenever outside the footer */
body > .iub__us-widget {
  display: none !important;
}
body > .iubenda-tp-btn {
  display: none !important;
}

/* Iubenda US Widget (Notice at collection + Your Privacy Choices) docked inside footer */
.footer-iub-us-dock {
  display: inline-flex;
  align-items: center;
}
.site-footer .iub__us-widget {
  display: inline-flex !important;
  position: static !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}
.site-footer .iub__us-widget__wrapper {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
}
.site-footer .iub__us-widget__link {
  color: var(--text-muted) !important;
  font-size: 0.84rem !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  font-family: inherit !important;
  font-weight: 500 !important;
  line-height: inherit !important;
  transition: color 0.15s ease !important;
}
.site-footer .iub__us-widget__link:hover {
  color: var(--color-brand) !important;
  text-decoration: underline !important;
}
.site-footer .iub__us-widget__link--privacy-choices {
  color: #a5f3fc !important;
}
.site-footer .iub__us-widget__link--privacy-choices:hover {
  color: #38bdf8 !important;
}

/* Inline Iubenda Official Logo aligned with legal text inside footer */
.footer-iubenda-inline-slot {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
button.iubenda-tp-btn,
button.iubenda-tp-btn[data-tp-float],
.site-footer .iubenda-tp-btn,
.footer-iubenda-inline-slot .iubenda-tp-btn {
  position: static !important;
  display: inline-block !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  background-size: 28px 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  cursor: pointer !important;
  border-radius: 6px !important;
  border: 1px solid rgba(28, 198, 145, 0.3) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  z-index: 10 !important;
  vertical-align: middle !important;
}
button.iubenda-tp-btn:hover,
.footer-iubenda-inline-slot .iubenda-tp-btn:hover {
  transform: translateY(-1px) scale(1.05) !important;
  box-shadow: 0 4px 12px rgba(28, 198, 145, 0.4) !important;
}

/* Static fallback for Notice at collection / Your Privacy Choices
   (shown when the official Iubenda US Privacy widget script doesn't render its own widget) */
.footer-iub-us-fallback {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.iubenda-privacy-choices-link {
  color: #a5f3fc;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.iubenda-privacy-choices-link:hover {
  color: #38bdf8;
}

/* Static fallback for the official Iubenda badge
   (shown when the official Iubenda Tracking Protection button script doesn't render its own badge) */
.footer-iub-logo-fallback {
  display: inline-flex;
  align-items: center;
}
.iubenda-official-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(28, 198, 145, 0.08);
  border: 1px solid rgba(28, 198, 145, 0.35);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.iubenda-official-badge:hover {
  background: rgba(28, 198, 145, 0.2);
  border-color: #1CC691;
  box-shadow: 0 0 14px rgba(28, 198, 145, 0.4);
  transform: translateY(-1px);
  color: #1CC691;
}
.iubenda-badge-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.iubenda-badge-text {
  font-family: inherit;
  font-weight: 700;
}


/* ==========================================================================
   DIRECT FILE UPLOADER & MULTI-LANGUAGE BATCH SELECTOR
   ========================================================================== */
.studio-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 78, 107, 0.12);
  color: var(--color-brand);
  border: 1px solid rgba(255, 78, 107, 0.3);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.studio-upload-btn:hover {
  background: rgba(255, 78, 107, 0.25);
  border-color: var(--color-brand);
  box-shadow: 0 0 12px rgba(255, 78, 107, 0.3);
  transform: translateY(-1px);
}
.studio-upload-btn.loaded {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: #10b981;
}

/* Multi-Language Selector Trigger & Wrapper */
.multi-lang-wrapper {
  position: relative;
  flex-shrink: 0;
}
.multi-lang-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.multi-lang-trigger:hover, .multi-lang-trigger:focus {
  border-color: var(--color-brand);
  background: rgba(255, 78, 107, 0.05);
}
.multi-lang-chips {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 170px;
  overflow: hidden;
}
.lang-chip {
  background: rgba(255, 78, 107, 0.12);
  color: #a5f3fc;
  border: 1px solid rgba(255, 78, 107, 0.25);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  white-space: nowrap;
}
.multi-lang-count {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-brand);
  background: rgba(255, 78, 107, 0.15);
  padding: 2px 6px;
  border-radius: 999px;
}
.multi-lang-chevron {
  transition: transform 0.2s ease;
}
.multi-lang-wrapper.open .multi-lang-chevron {
  transform: rotate(180deg);
}

/* Floating Multi-Language Dropdown Panel */
.multi-lang-wrapper {
  position: relative;
}
.multi-lang-wrapper.open {
  z-index: 100000;
}
.multi-lang-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 440px;
  max-width: 92vw;
  background: #080c16;
  border: 1px solid rgba(255, 78, 107, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.98), 0 0 35px rgba(255, 78, 107, 0.3);
  padding: 16px;
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 100000;
  max-height: min(420px, calc(100vh - 80px));
  overflow-y: auto;
}
.multi-lang-dropdown.drop-up {
  top: auto;
  bottom: calc(100% + 12px);
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 78, 107, 0.25);
}
@media (max-width: 640px) {
  .multi-lang-dropdown {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw - 32px);
  }
}
.multi-lang-wrapper.open .multi-lang-dropdown {
  display: flex;
}
.dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}
.dropdown-quota-info {
  display: flex;
  flex-direction: column;
}
.quota-plan {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-brand);
}
.quota-text {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.upgrade-link-btn {
  background: transparent;
  border: 1px solid rgba(255, 78, 107, 0.3);
  color: var(--color-brand);
  border-radius: var(--radius-pill);
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.upgrade-link-btn:hover {
  background: var(--color-brand);
  color: #0b0f19;
}
.dropdown-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.preset-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 6px 4px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.preset-btn:hover, .preset-btn.active {
  background: rgba(255, 78, 107, 0.15);
  border-color: var(--color-brand);
  color: #ffffff;
}

/* Single / Custom language selector mode toggle (Blog, Speech, Create Video panels) */
.dropdown-mode-toggle {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px;
}
.lang-mode-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.lang-mode-btn:hover {
  color: #ffffff;
}
.lang-mode-btn.active {
  background: var(--color-brand);
  color: #0b0f19;
  box-shadow: 0 2px 10px rgba(255, 78, 107, 0.4);
}

.dropdown-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 6px 10px;
}
.dropdown-search input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.78rem;
  width: 100%;
}
.dropdown-lang-list {
  max-height: 180px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding-right: 6px;
}
.dropdown-lang-list::-webkit-scrollbar {
  width: 6px;
}
.dropdown-lang-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}
.dropdown-lang-list::-webkit-scrollbar-thumb {
  background: var(--color-brand);
  border-radius: 4px;
}
.dropdown-lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #111726;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.dropdown-lang-item:hover {
  background: #1a2236;
  border-color: rgba(255, 78, 107, 0.4);
}
.dropdown-lang-item.selected {
  background: rgba(255, 78, 107, 0.16);
  border-color: var(--color-brand);
}
.dropdown-lang-item input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--color-brand);
}
.dropdown-lang-name {
  font-size: 0.78rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dropdown-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   10-SOCIAL-PLATFORM SYNDICATION HUB & BUTTONS
   ========================================================================== */
.syndication-card {
  position: relative;
}
.syndication-channel-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}
.channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.channel-row:hover {
  border-color: rgba(255, 78, 107, 0.3);
  background: rgba(255, 255, 255, 0.04);
}
.channel-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.platform-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.platform-icon.yt { background: #ff0000; color: #fff; }
.platform-icon.tt { background: #000000; color: #00f2fe; border: 1px solid #333; }
.platform-icon.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.platform-icon.fb { background: #1877f2; color: #fff; }
.platform-icon.in { background: #0a66c2; color: #fff; }
.platform-icon.x  { background: #000000; color: #fff; border: 1px solid #333; }
.platform-icon.dm { background: #0066dc; color: #fff; }
.platform-icon.wa { background: #25d366; color: #fff; }
.platform-icon.wc { background: #07c160; color: #fff; }
.platform-icon.sc { background: #fffc00; color: #000; }

.channel-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.btn-channel-upload {
  background: rgba(255, 78, 107, 0.12);
  color: var(--color-brand);
  border: 1px solid rgba(255, 78, 107, 0.3);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-channel-upload:hover {
  background: var(--color-brand);
  color: #0b0f19;
}
.btn-channel-dl {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-channel-dl:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Real-time Syndication Progress Console */
.syndication-console {
  margin-top: 14px;
  background: #06090e;
  border: 1px solid rgba(255, 78, 107, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: 'JetBrains Mono', monospace, monospace;
  font-size: 0.75rem;
  color: #a5f3fc;
  max-height: 180px;
  overflow-y: auto;
  line-height: 1.5;
}
.console-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.console-line.success { color: #10b981; }
.console-line.running { color: #38bdf8; }

/* ==========================================================================
   PLAN UPGRADE & QUOTA MANAGEMENT MODAL (29 CHF, 49 CHF, 199 CHF)
   ========================================================================== */
.plan-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 15, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.plan-modal-overlay.open {
  display: flex;
}
.plan-modal-card {
  position: relative;
  background: #0d121f;
  border: 1px solid rgba(255, 78, 107, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 78, 107, 0.15);
  max-width: 960px;
  width: 100%;
  padding: 32px;
  max-height: 90vh;
  overflow-y: auto;
}
.plan-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.plan-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.plan-modal-header {
  text-align: center;
  margin-bottom: 24px;
}
.plan-modal-pill {
  display: inline-block;
  background: rgba(255, 78, 107, 0.15);
  color: var(--color-brand);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}
.plan-modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}
.plan-modal-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.plan-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
@media (max-width: 860px) {
  .plan-modal-grid {
    grid-template-columns: 1fr;
  }
}
.plan-tier-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.plan-tier-card:hover {
  border-color: rgba(255, 78, 107, 0.4);
  transform: translateY(-2px);
}
.plan-tier-card.featured {
  background: rgba(255, 78, 107, 0.04);
  border-color: rgba(255, 78, 107, 0.4);
  box-shadow: 0 0 25px rgba(255, 78, 107, 0.12);
}
.plan-tier-card.active {
  border-color: var(--color-brand);
}
.tier-popular-tag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #FF4E6B, #7000ff);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.tier-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.tier-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}
.tier-cost {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 12px;
}
.tier-cost span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}
.tier-quota-feature {
  background: rgba(255, 78, 107, 0.1);
  border: 1px solid rgba(255, 78, 107, 0.25);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.82rem;
  color: var(--color-brand);
  margin-bottom: 14px;
}
.tier-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex: 1;
}
.tier-bullets li {
  line-height: 1.4;
}
.tier-action-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: #ffffff;
  padding: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tier-action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}
.tier-action-btn.featured {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #0b0f19;
  box-shadow: 0 0 15px rgba(255, 78, 107, 0.3);
}
.tier-action-btn.featured:hover {
  background: #38bdf8;
}

/* ============================================================================
   VIDEO MEDIA PLAYER SUITE & COMPARISON MODE
   ============================================================================ */
.player-title-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.player-main-title {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-badge-live {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(255, 78, 107, 0.12);
  color: #FF4E6B;
  border: 1px solid rgba(255, 78, 107, 0.3);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  letter-spacing: 0.5px;
}

.google-voice-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 6px;
  padding: 3px 8px;
  width: fit-content;
}

.player-view-mode-tabs {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.player-mode-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.player-mode-tab:hover {
  color: #ffffff;
}

.player-mode-tab.active {
  background: rgba(255, 78, 107, 0.18);
  color: var(--color-brand);
  border: 1px solid rgba(255, 78, 107, 0.4);
}

.player-viewports-container {
  display: grid;
  gap: 14px;
  position: relative;
  width: 100%;
  margin-top: 10px;
}

.player-viewports-container.mode-translated {
  grid-template-columns: 1fr;
}
.player-viewports-container.mode-translated .original-viewport {
  display: none !important;
}
.player-viewports-container.mode-translated .translated-viewport {
  display: block !important;
}

.player-viewports-container.mode-original {
  grid-template-columns: 1fr;
}
.player-viewports-container.mode-original .original-viewport {
  display: block !important;
}
.player-viewports-container.mode-original .translated-viewport {
  display: none !important;
}

.player-viewports-container.mode-split {
  grid-template-columns: 1fr 1fr;
}
.player-viewports-container.mode-split .original-viewport {
  display: block !important;
}
.player-viewports-container.mode-split .translated-viewport {
  display: block !important;
}

.video-viewport {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.viewport-badge-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}

.viewport-badge-tag.orig {
  background: rgba(0, 0, 0, 0.7);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.viewport-badge-tag.trans {
  background: rgba(255, 78, 107, 0.2);
  color: #FF4E6B;
  border: 1px solid rgba(255, 78, 107, 0.4);
}

.subtitle-overlay {
  position: absolute;
  bottom: 25px;
  left: 5%;
  right: 5%;
  text-align: center;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 4px #000;
  background: rgba(0, 0, 0, 0.75);
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 5;
  line-height: 1.4;
}

.lip-sync-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
  backdrop-filter: blur(6px);
}

.lip-sync-indicator .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulse 1.5s infinite;
}

/* Custom Player Controls Bar */
.player-custom-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(8, 11, 17, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  margin-top: 10px;
}

.ctrl-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.ctrl-btn:hover {
  background: rgba(255, 78, 107, 0.15);
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.ctrl-btn.active {
  color: var(--color-brand);
  border-color: var(--color-brand);
}

.ctrl-btn.share-btn {
  width: auto;
  padding: 0 10px;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.ctrl-btn.share-btn:hover {
  background: rgba(255, 78, 107, 0.2);
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.timeline-container {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeline-scrubber {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  cursor: pointer;
}

.timeline-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-brand);
  cursor: pointer;
  box-shadow: 0 0 8px var(--color-brand);
}

.timecode-display {
  font-size: 0.72rem;
  font-family: monospace;
  color: var(--text-muted);
  white-space: nowrap;
}

.audio-ctrl-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-slider {
  width: 60px;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.speed-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 0.72rem;
  border-radius: 4px;
  padding: 4px 6px;
  cursor: pointer;
}

.track-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 10px;
}

.track-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.google-voice-picker-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.google-voice-select {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 78, 107, 0.3);
  color: #FF4E6B;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
}

/* ============================================================================
   ENTERPRISE SOCIAL SETTINGS & SYNDICATION HUB MODAL
   ============================================================================ */
.panel-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.social-settings-trigger-btn {
  background: rgba(255, 78, 107, 0.1);
  border: 1px solid rgba(255, 78, 107, 0.3);
  color: var(--color-brand);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.social-settings-trigger-btn:hover {
  background: rgba(255, 78, 107, 0.2);
  box-shadow: 0 0 10px rgba(255, 78, 107, 0.25);
}

.channel-linked-badge {
  font-size: 0.68rem;
  color: #10b981;
  font-weight: 600;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Modal Overlay */
.social-settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.social-settings-overlay.active {
  display: flex;
}

.social-settings-card {
  background: #0f172a;
  border: 1px solid rgba(255, 78, 107, 0.3);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 78, 107, 0.15);
  overflow: hidden;
}

.social-settings-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.social-settings-close:hover {
  background: #ff3366;
}

.social-settings-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-header-badge {
  display: inline-block;
  background: rgba(255, 78, 107, 0.12);
  color: #FF4E6B;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.settings-modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
}

.settings-modal-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

.social-settings-form {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.social-setting-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.social-setting-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #e2e8f0;
}

.social-setting-label .platform-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.social-setting-input {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #fff;
  padding: 9px 12px;
  font-size: 0.82rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.social-setting-input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 10px rgba(255, 78, 107, 0.25);
  background: rgba(255, 78, 107, 0.04);
}

.social-settings-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 17, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.settings-reset-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.settings-reset-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.settings-save-btn {
  background: var(--color-brand);
  border: none;
  color: #0b0f19;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 15px rgba(255, 78, 107, 0.35);
}

.settings-save-btn:hover {
  background: #38bdf8;
  transform: translateY(-1px);
}

/* ==========================================================================
   USER PROFILE MENU (REPLACING PUBLIC HEADER PARAMÈTRES)
   ========================================================================== */
.user-profile-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.user-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 78, 107, 0.35);
  border-radius: var(--radius-pill);
  padding: 5px 12px 5px 6px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.user-chip-btn:hover {
  background: rgba(255, 78, 107, 0.12);
  border-color: var(--color-brand);
  box-shadow: 0 0 12px rgba(255, 78, 107, 0.25);
}
.user-chip-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-brand), var(--color-accent));
  color: #0b0f19;
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-chip-chevron {
  transition: transform 0.2s ease;
}
.user-profile-wrap.open .user-chip-chevron {
  transform: rotate(180deg);
}
.user-profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 285px;
  background: #0d121f;
  border: 1px solid rgba(255, 78, 107, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 78, 107, 0.18);
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 100000;
  animation: fadeIn 0.2s ease-out;
}
.user-profile-wrap.open .user-profile-menu {
  display: flex;
}
.user-menu-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 8px 6px;
}
.user-menu-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-brand), var(--color-accent));
  color: #0b0f19;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.user-menu-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.user-menu-name {
  font-weight: 700;
  font-size: 0.86rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-menu-email {
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-menu-plan-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-brand);
  background: rgba(255, 78, 107, 0.12);
  border: 1px solid rgba(255, 78, 107, 0.25);
  padding: 2px 7px;
  border-radius: 999px;
  margin-top: 4px;
  display: inline-block;
  align-self: flex-start;
}
.user-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
}
.user-menu-item:hover {
  background: rgba(255, 78, 107, 0.12);
  color: #ffffff;
}
.user-menu-item svg {
  flex-shrink: 0;
}
.user-menu-item.danger {
  color: #ff3366;
}
.user-menu-item.danger:hover {
  background: rgba(255, 51, 102, 0.15);
  color: #ff5577;
}

/* ==========================================================================
   VIDEO MEDIA PLAYER: DUAL AUDIO SOURCE COMPARISON SWITCHER
   ========================================================================== */
.player-audio-source-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  padding: 3px 4px;
  gap: 4px;
}
.audio-source-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.audio-source-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}
.audio-source-btn.active {
  background: linear-gradient(135deg, rgba(255, 78, 107, 0.3), rgba(138, 43, 226, 0.3));
  border: 1px solid var(--color-brand);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 78, 107, 0.35);
}


/* Signed-in profile chip (replaces the "Free Trial" header button) */
.btn.wv-profile-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 6px; max-width: 220px;
}
.wv-profile-chip .wv-profile-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.28); color: #fff; font-weight: 800; font-size: 0.85rem;
}
.wv-profile-chip .wv-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wv-profile-chip .wv-profile-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Long-form video job progress (real per-segment progress, see
   startLongVideoDubPipeline in app.js / getVideoDubJobStatus backend). */
.lv-job-note {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 4px 0 18px 0;
  line-height: 1.5;
}
.lv-lang-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lv-lang-row {
  display: grid;
  grid-template-columns: 140px 1fr 160px;
  align-items: center;
  gap: 14px;
}
.lv-lang-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lv-lang-bar-track {
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.lv-lang-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(135deg, #FF4E6B 0%, #FF6E8C 100%);
  transition: width 0.4s ease;
}
.lv-lang-status {
  font-size: 0.78rem;
  color: #94a3b8;
  text-align: right;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .lv-lang-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .lv-lang-status {
    text-align: left;
  }
}

/* X "My Videos" picker (real auto-fetch via X API, see getMyXVideos /
   startXVideoDubJob) and the animated dots/cubes loading indicator used
   while a job is starting up, before per-segment progress exists. */
.lv-dots-loader {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 24px 0;
}
.lv-dots-loader span {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #FF4E6B;
  animation: lv-dot-bounce 1.1s ease-in-out infinite;
}
.lv-dots-loader span:nth-child(2) { animation-delay: 0.15s; }
.lv-dots-loader span:nth-child(3) { animation-delay: 0.3s; }
@keyframes lv-dot-bounce {
  0%, 60%, 100% { transform: translateY(0) scale(1); opacity: 0.55; }
  30% { transform: translateY(-8px) scale(1.15); opacity: 1; }
}

.x-video-list {
  display: none;
  flex-direction: column;
  gap: 10px;
  max-height: 60vh;
  overflow-y: auto;
}
.x-video-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.x-video-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}
.x-video-meta {
  min-width: 0;
}
.x-video-text {
  font-size: 0.8rem;
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.x-video-date {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 4px;
}
.x-video-pick-btn {
  background: linear-gradient(135deg, #FF4E6B 0%, #FF6E8C 100%);
  border: none;
  color: #080b11;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 8px 14px;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
}

/* ===== Éditeur de posts (canvas) ===== */
.wv-design-layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1100px) { .wv-design-layout { grid-template-columns: minmax(0, 1fr); } }
.wv-design-layout > * { min-width: 0; }
.wv-design-controls { max-height: 86vh; overflow-y: auto; }
.wv-dz-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.wv-dz-btn {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle, rgba(255,255,255,0.12)); color: var(--text-main, #fff);
  border-radius: 8px; padding: 6px 11px; font-size: 0.78rem; font-weight: 600; cursor: pointer; font-family: inherit;
}
.wv-dz-btn:hover { border-color: var(--color-brand, #FF4E6B); }
.wv-dz-btn.active { background: var(--color-brand, #FF4E6B); border-color: var(--color-brand, #FF4E6B); color: #fff; }
.wv-dz-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.wv-dz-lbl { font-size: 0.78rem; color: var(--text-muted); }
.wv-dz-row input[type=color], .wv-dz-toolbar input[type=color] { width: 36px; height: 32px; padding: 0; border: 1px solid var(--border-subtle); border-radius: 8px; background: none; cursor: pointer; }
.wv-dz-swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.wv-dz-swatch { aspect-ratio: 1; border-radius: 8px; border: 2px solid transparent; cursor: pointer; padding: 0; }
.wv-dz-swatch:hover, .wv-dz-swatch.active { border-color: #fff; }
.wv-dz-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.wv-dz-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.wv-dz-photos img:hover { border-color: var(--color-brand, #FF4E6B); }
.wv-dz-photos .wv-dz-note { grid-column: 1 / -1; font-size: 0.74rem; color: var(--text-muted); }
.wv-dz-toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; margin-bottom: 10px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle); }
.wv-dz-toolbar input[type=number] { width: 64px; background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle); border-radius: 8px; color: inherit; padding: 6px; }
.wv-dz-canvas-wrap { display: flex; justify-content: center; padding: 16px; border-radius: 14px; overflow: auto; background: repeating-conic-gradient(#20242e 0% 25%, #171a21 0% 50%) 50% / 24px 24px; }
.wv-dz-canvas-wrap .canvas-container { box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.wv-dz-meta { margin-top: 8px; font-size: 0.74rem; color: var(--text-muted); text-align: center; }

.wv-dz-hint { font-size: 0.76rem; color: var(--text-muted); margin: 4px 0 8px; }
.wv-dz-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.wv-dz-go {
  margin-top: 10px; width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border-subtle, rgba(255,255,255,0.12));
  background: rgba(255,255,255,0.05); color: var(--text-muted); font-weight: 800; font-size: 0.9rem; font-family: inherit; cursor: not-allowed;
}
.wv-dz-go.ready { cursor: pointer; color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--color-brand, #FF4E6B), var(--color-accent, #7C3AED)); animation: wvDzGlow 1.8s ease-in-out infinite; }
@keyframes wvDzGlow { 0%,100% { box-shadow: 0 0 10px rgba(255,78,107,0.5); } 50% { box-shadow: 0 0 26px 4px rgba(255,78,107,0.85); } }
@media (prefers-reduced-motion: reduce) { .wv-dz-go.ready { animation: none; box-shadow: 0 0 18px rgba(255,78,107,0.7); } }

/* ===== Pricing notes + billing UI ===== */
.pricing-note { text-align: center; margin: 22px auto 0; max-width: 720px; color: var(--text-main, #fff); font-weight: 600; }
.pricing-note--small { margin-top: 8px; font-weight: 400; font-size: 0.82rem; color: var(--text-muted, #94a3b8); }

/* ===== Billing card (profile) ===== */
.wv-billing-card { margin: 0 0 14px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(255,78,107,0.10), rgba(124,58,237,0.10)); border: 1px solid rgba(255,78,107,0.28); }
.wv-billing-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.wv-billing-plan { font-weight: 800; font-size: 1.02rem; }
.wv-billing-price { font-size: 0.8rem; color: var(--text-muted, #94a3b8); }
.wv-billing-sub { margin-top: 6px; font-size: 0.78rem; color: var(--text-muted, #94a3b8); }
.wv-billing-warn { margin-top: 8px; padding: 8px 10px; border-radius: 10px; font-size: 0.8rem; background: rgba(245,158,11,0.15); color: #f59e0b; }
.wv-billing-usage-title { margin: 12px 0 6px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted, #94a3b8); }
.wv-billing-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; margin-bottom: 8px; font-size: 0.8rem; }
.wv-billing-val { color: var(--text-muted, #94a3b8); font-variant-numeric: tabular-nums; }
.wv-billing-bar { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: rgba(255,255,255,0.09); overflow: hidden; }
.wv-billing-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #22C55E, #7C3AED); transition: width .3s ease; }
.wv-billing-fill.hot { background: linear-gradient(90deg, #F59E0B, #EF4444); }
.wv-billing-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wv-billing-upgrade { background: linear-gradient(135deg, var(--color-brand, #FF4E6B), var(--color-accent, #7C3AED)) !important; color: #fff !important; border-color: transparent !important; }
.tier-action-btn:disabled { opacity: .55; cursor: default; }

/* monthly / yearly switch */
.wv-interval { display: flex; justify-content: center; gap: 4px; margin: 0 auto 24px; padding: 4px; width: fit-content; max-width: 100%; border: 1px solid rgba(148,163,184,.35); border-radius: 999px; background: rgba(15,23,42,.55); }
.wv-interval-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--text-muted, #94a3b8); font: inherit; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.wv-interval-btn.active { background: var(--color-brand, #ff4e6b); color: #fff; }
.wv-interval-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wv-interval-badge { font-size: .7rem; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.18); }
.wv-yearly-note { text-align: center; margin: -4px 0 10px; font-size: .85rem; font-weight: 600; color: #34d399; }
@media (max-width: 480px) { .wv-interval-btn { padding: 8px 12px; font-size: .9rem; } }

/* voice-cloning consent */
.wv-consent { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 4px; padding: 12px 14px; border: 1px solid var(--border-subtle, rgba(255,255,255,.1)); border-radius: 12px; background: rgba(15,23,42,.45); cursor: pointer; font-size: .88rem; line-height: 1.4; }
.wv-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--color-brand, #ff4e6b); flex: 0 0 auto; }
.wv-consent small { display: block; margin-top: 4px; color: var(--text-muted, #94a3b8); font-size: .78rem; }

.wv-field-hint { display: block; margin-top: 4px; color: var(--text-muted, #94a3b8); font-size: .75rem; line-height: 1.35; }

.wv-link-notice { margin: 10px 0 0; padding: 12px 14px; border: 1px solid rgba(245,158,11,.45); border-radius: 12px; background: rgba(245,158,11,.08); color: var(--text-main, #fff); font-size: .88rem; line-height: 1.45; }

/* live translation panel */
.wv-live-card { margin: 18px 0; padding: 18px 20px; border: 1px solid var(--border-subtle, rgba(255,255,255,.12)); border-radius: 16px; background: rgba(15,23,42,.5); }
.wv-live-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.wv-live-intro { margin: 0 0 12px; color: var(--text-muted, #94a3b8); font-size: .86rem; line-height: 1.5; }
.wv-live-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.wv-live-voice { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; cursor: pointer; }
.wv-live-voice input { width: 17px; height: 17px; accent-color: var(--color-brand, #ff4e6b); }
.wv-live-lang { margin-top: 10px; font-size: .82rem; color: var(--text-muted, #94a3b8); }
.wv-live-status { min-height: 1.2em; margin-top: 6px; font-size: .85rem; }
.wv-live-status[data-kind="ok"] { color: #34d399; }
.wv-live-status[data-kind="error"] { color: #f87171; }
.wv-live-status[data-kind="warn"] { color: #fbbf24; }
.wv-live-captions { margin-top: 10px; max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.wv-live-line { padding: 10px 12px; border-left: 3px solid var(--color-brand, #ff4e6b); background: rgba(255,255,255,.04); border-radius: 0 10px 10px 0; }
.wv-live-tr { font-size: 1.05rem; font-weight: 600; line-height: 1.4; }
.wv-live-orig { margin-top: 3px; font-size: .78rem; color: var(--text-muted, #94a3b8); }

/* library */
.wv-lib-me { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.wv-lib-me .blog-select { max-width: 240px; }
.wv-lib-info { font-size: .82rem; color: var(--text-muted, #94a3b8); }
.wv-lib-info[data-kind="error"] { color: #f87171; }
.wv-lib-info[data-kind="ok"] { color: #34d399; }
.wv-lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.wv-lib-card { text-align: left; padding: 0; border: 1px solid var(--border-subtle, rgba(255,255,255,.12)); border-radius: 14px; background: rgba(15,23,42,.55); color: inherit; font: inherit; cursor: pointer; overflow: hidden; transition: transform .15s, border-color .15s; }
.wv-lib-card:hover, .wv-lib-card:focus-visible { transform: translateY(-2px); border-color: var(--color-brand, #ff4e6b); outline: none; }
.wv-lib-hero { height: 110px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #fff; background: linear-gradient(135deg, #1e293b, #ff4e6b 140%); }
.wv-lib-title { padding: 10px 12px 2px; font-weight: 700; font-size: .95rem; line-height: 1.3; }
.wv-lib-sub { padding: 0 12px 6px; font-size: .78rem; color: var(--text-muted, #94a3b8); }
.wv-lib-chips { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px 12px 12px; }
.wv-lib-chip { font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(255,78,107,.18); color: #ffd3da; }
.wv-lib-chip.orig { background: rgba(148,163,184,.2); color: #e2e8f0; }
.wv-lib-chip.pending { background: rgba(245,158,11,.18); color: #fde68a; }
.wv-lib-empty { padding: 24px; text-align: center; color: var(--text-muted, #94a3b8); }
.wv-lib-form { display: flex; flex-direction: column; gap: 10px; }
.wv-lib-form input[type=text], .wv-lib-form input[type=url], .wv-lib-form textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-subtle, rgba(255,255,255,.14)); background: rgba(10,14,24,.8); color: inherit; font: inherit; }
.wv-lib-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 6px 12px 12px; }
.wv-lib-form .wv-lib-actions { padding: 0; }
.wv-lib-mine-row { padding: 12px 0; border-bottom: 1px solid var(--border-subtle, rgba(255,255,255,.1)); }
.wv-lib-mine-row .wv-lib-title, .wv-lib-mine-row .wv-lib-chips, .wv-lib-mine-row .wv-lib-sub { padding-left: 0; padding-right: 0; }
.wv-lib-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(2,6,23,.78); }
.wv-lib-modal[hidden] { display: none; }
.wv-lib-modal-box { position: relative; width: min(920px, 100%); max-height: 94vh; overflow-y: auto; padding: 18px; border-radius: 16px; background: #0b1220; border: 1px solid var(--border-subtle, rgba(255,255,255,.14)); }
.wv-lib-modal-box h3 { margin: 0 36px 10px 0; font-size: 1.1rem; }
.wv-lib-modal-box video { width: 100%; max-height: 62vh; background: #000; border-radius: 10px; }
.wv-lib-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
.wv-lib-langs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.wv-lib-lang { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-subtle, rgba(255,255,255,.18)); background: transparent; color: inherit; font: inherit; font-size: .82rem; cursor: pointer; }
.wv-lib-lang.active { background: var(--color-brand, #ff4e6b); border-color: transparent; color: #fff; }
.wv-lib-meta { margin: 6px 0; font-size: .85rem; line-height: 1.5; }
.wv-lib-meta a { color: var(--color-accent, #ff6e8c); }
