/* ============================================
   Features — Feature Voting Page
   features-voting.css
   Uses shared.css design tokens (violet palette)
   ============================================ */

/* --- Hero --- */
.fvoting-hero {
  padding: calc(72px + 4rem) 0 4rem;
  position: relative;
  overflow: hidden;
}

.fvoting-hero__content {
  max-width: 850px;
  margin-bottom: 3rem;
}

.fvoting-hero__badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.fvoting-hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
  letter-spacing: -0.025em;
  max-width: none;
  white-space: nowrap;
}

.fvoting-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fvoting-hero__pill {
  padding: 0.4rem 1rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--violet-primary);
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-full);
}

.fvoting-hero__visual.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: none;
}

.fvoting-hero__visual.animate-on-scroll.is-visible {
  animation: fvoting-hero-fade 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  transition: none;
}

.fvoting-hero__visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

@keyframes fvoting-hero-fade {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --- Hero Platform Mockup --- */
.fvoting-platform {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
  background: #FFFFFF;
  font-size: 11px;
  line-height: 1.4;
  max-width: 1134px;
}

.fvoting-platform__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #F1F5F9;
  border-bottom: 1px solid #E2E8F0;
}

.fvoting-platform__chrome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fvoting-platform__chrome-url {
  margin-left: 8px;
  font-size: 10px;
  color: #64748B;
  background: #FFFFFF;
  padding: 3px 12px;
  border-radius: 4px;
  border: 1px solid #E2E8F0;
  flex: 1;
  max-width: 280px;
}

.fvoting-platform__topnav {
  display: flex;
  align-items: center;
  padding: 0 15px 0 0;
  height: 38px;
  border-bottom: 1px solid #E2E8F0;
  background: #FFFFFF;
  gap: 10px;
  overflow: hidden;
}

.fvoting-platform__topnav-project {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #1E293B;
  white-space: nowrap;
  padding: 4px 10px;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  flex-shrink: 0;
}

.fvoting-platform__project-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  flex-shrink: 0;
}

.fvoting-platform__tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.fvoting-platform__tab {
  font-size: 9.5px;
  font-weight: 500;
  color: #64748B;
  padding: 4px 7px;
  border-radius: 4px;
  white-space: nowrap;
  cursor: default;
}

.fvoting-platform__tab--active {
  color: #4F46E5;
  background: rgba(79, 70, 229, 0.08);
  font-weight: 600;
}

.fvoting-platform__topnav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
  color: #94A3B8;
}

.fvoting-platform__topnav-avatar {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.fvoting-platform__main {
  display: flex;
  overflow: hidden;
}

.fvoting-platform__main--no-sidebar .fvoting-platform__board {
  flex: 1;
}

.fvoting-platform__sidebar {
  width: 138px;
  flex-shrink: 0;
  background: #FFFFFF;
  border-right: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  overflow: hidden;
}

.fvoting-platform__sidebar-group {
  padding: 0 10px;
  margin-bottom: 14px;
}

.fvoting-platform__topnav-overview {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 6px;
  width: 138px;
  flex-shrink: 0;
  padding: 0 10px 0 16px;
  font-size: 10px;
  font-weight: 500;
  color: #475569;
  border-right: 1px solid #E2E8F0;
  white-space: nowrap;
  box-sizing: border-box;
}

.fvoting-platform__topnav-overview svg {
  flex-shrink: 0;
  color: #94A3B8;
}

.fvoting-platform__sidebar-label {
  display: block;
  font-size: 7px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  padding: 0 6px;
}

.fvoting-platform__sidebar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  font-size: 10px;
  font-weight: 500;
  color: #475569;
  border-radius: 4px;
  cursor: default;
  white-space: nowrap;
}

.fvoting-platform__sidebar-item svg {
  flex-shrink: 0;
  color: #94A3B8;
}

.fvoting-platform__sidebar-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding: 8px 16px;
  font-size: 10px;
  font-weight: 500;
  color: #475569;
  border-top: 1px solid #E2E8F0;
  white-space: nowrap;
}

.fvoting-platform__sidebar-foot svg {
  flex-shrink: 0;
  color: #94A3B8;
}

/* --- Voting Card Grid --- */
.fvoting-platform__board {
  flex: 1;
  padding: 12px;
  background: #F8FAFC;
  overflow: hidden;
  position: relative;
}

/* Hero voting cursor */
.fvoting-board__cursor {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 15;
  opacity: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  transition: opacity 0.35s ease-out, top 0.35s cubic-bezier(0.22, 1, 0.36, 1), left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.fvoting-platform__votegrid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.fvoting-card {
  display: flex;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 10px 12px;
  opacity: 0;
  transform: translateY(12px);
  position: relative;
}

.fvoting-hero__visual.is-visible .fvoting-card {
  animation: fvoting-card-appear 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fvoting-hero__visual.is-visible .fvoting-card:nth-child(1) { animation-delay: 0.8s; }
.fvoting-hero__visual.is-visible .fvoting-card:nth-child(2) { animation-delay: 0.95s; }
.fvoting-hero__visual.is-visible .fvoting-card:nth-child(3) { animation-delay: 1.1s; }
.fvoting-hero__visual.is-visible .fvoting-card:nth-child(4) { animation-delay: 1.25s; }
.fvoting-hero__visual.is-visible .fvoting-card:nth-child(5) { animation-delay: 1.4s; }
.fvoting-hero__visual.is-visible .fvoting-card:nth-child(6) { animation-delay: 1.55s; }
.fvoting-hero__visual.is-visible .fvoting-card:nth-child(7) { animation-delay: 1.7s; }
.fvoting-hero__visual.is-visible .fvoting-card:nth-child(8) { animation-delay: 1.85s; }
.fvoting-hero__visual.is-visible .fvoting-card:nth-child(9) { animation-delay: 2.0s; }

@keyframes fvoting-card-appear {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Vote count-up bump --- */
.fvoting-card__upvote-count.is-bumping,
.fvoting-feature-card__upvote-count.is-bumping {
  animation: fvoting-count-bump 0.25s ease-out;
}

@keyframes fvoting-count-bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* --- Card drag-and-swap animation --- */
.fvoting-card {
  transition: none;
}

.fvoting-card.fvoting-card--dragging {
  position: relative;
  z-index: 10;
  pointer-events: none;
}

.fvoting-card.fvoting-card--displaced {
  position: relative;
  z-index: 4;
}

.fvoting-card.fvoting-card--pulse {
  animation: fvoting-card-pulse 0.4s ease-out;
}

@keyframes fvoting-card-pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.04); }
  70% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

.fvoting-card__upvote {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 36px;
  padding: 8px 6px;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  flex-shrink: 0;
  cursor: default;
  align-self: center;
}

/* Voted state — purple outline + pale purple bg */
.fvoting-card__upvote.is-voted {
  border-color: var(--violet-primary);
  background: rgba(124, 58, 237, 0.06);
  transition: border-color 0.3s, background 0.3s;
}

.fvoting-card__upvote.is-voted .fvoting-card__upvote-count {
  color: var(--violet-primary);
}

.fvoting-card__upvote.is-voted svg {
  stroke: var(--violet-primary);
}

.fvoting-card__upvote-count {
  font-size: 12px;
  font-weight: 700;
  color: #1E293B;
  line-height: 1;
}

.fvoting-card__upvote svg {
  color: #94A3B8;
  flex-shrink: 0;
}

.fvoting-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fvoting-card__title {
  font-size: 10px;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.3;
}

.fvoting-card__type {
  display: inline-block;
  font-size: 7px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 10px;
  width: fit-content;
}

.fvoting-card__type--feature {
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
}

.fvoting-card__type--revision {
  color: #64748B;
  background: #F1F5F9;
}

.fvoting-card__desc {
  font-size: 8.5px;
  color: #64748B;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fvoting-card__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px solid #F1F5F9;
}

.fvoting-card__status {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 7.5px;
  font-weight: 500;
  color: #64748B;
}

.fvoting-card__status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3B82F6;
  flex-shrink: 0;
}

.fvoting-card__comments {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 7.5px;
  font-weight: 500;
  color: #94A3B8;
  margin-left: auto;
}

.fvoting-card__comments svg {
  opacity: 0.6;
}

.fvoting-card__avatar {
  width: 14px;
  height: 14px;
  max-width: 14px;
  max-height: 14px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Platform Mockup Responsive */
@media (max-width: 1024px) {
  .fvoting-platform__sidebar { display: none; }
  .fvoting-platform__topnav-overview { display: none; }
  .fvoting-platform__tabs { display: none; }
  .fvoting-platform__votegrid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .fvoting-platform__topnav-project span { display: none; }
  .fvoting-platform__topnav-actions { display: none; }
  .fvoting-platform__votegrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .fvoting-platform__board { padding: 8px; }
  .fvoting-card { padding: 8px 10px; gap: 8px; }
  .fvoting-card__desc { display: none; }
}

/* --- Content Sections --- */
.fvoting-section {
  padding: var(--section-padding) 0;
}

.fvoting-section--reversed {
  background: var(--bg-secondary);
}

.fvoting-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.fvoting-section--reversed .fvoting-section__visual {
  order: -1;
}

.fvoting-section__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.fvoting-section__desc {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.fvoting-section__bullets {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.fvoting-section__bullets li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-secondary);
}

.fvoting-section__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-brand);
}

.fvoting-section__bullets li strong {
  color: var(--text-primary);
}

/* --- Placeholder Visuals --- */
.fvoting-placeholder {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.fvoting-placeholder__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.fvoting-placeholder__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-subtle);
}

.fvoting-placeholder__dot--red { background: #EF4444; }
.fvoting-placeholder__dot--yellow { background: #F59E0B; }
.fvoting-placeholder__dot--green { background: #10B981; }

.fvoting-placeholder__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-left: 0.25rem;
}

.fvoting-placeholder__body {
  padding: 3rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.03), rgba(217, 70, 239, 0.03));
}

.fvoting-placeholder__body--mock {
  padding: 1.25rem;
  background: #f4f5f8;
  min-height: auto;
  flex-direction: column;
  align-items: stretch;
}

/* --- Section 01: Feature Card Mockup --- */
.fvoting-feature-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
  margin: 0;
  position: relative;
}

.fvoting-feature-card + .fvoting-feature-card {
  margin-top: 0.75rem;
}

.fvoting-feature-card__top {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.875rem;
}

.fvoting-feature-card__upvote {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 52px;
  height: 52px;
  min-width: 52px;
  padding: 0.5rem;
  border: 2px solid var(--violet-primary);
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.04);
  flex-shrink: 0;
  align-self: center;
}

.fvoting-feature-card__upvote-count {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--violet-primary);
  line-height: 1;
}

.fvoting-feature-card__upvote svg {
  color: var(--violet-primary);
}

/* Gray upvote variant */
.fvoting-feature-card__upvote--gray {
  border-color: #D1D5DB;
  background: #FFFFFF;
}

.fvoting-feature-card__upvote--gray .fvoting-feature-card__upvote-count {
  color: var(--text-secondary, #64748B);
}

.fvoting-feature-card__upvote--gray svg {
  color: var(--text-secondary, #64748B);
}

/* Upvote button pulse on vote */
.fvoting-feature-card__upvote.is-pulsing {
  animation: fvoting-upvote-pulse 0.4s ease-out;
}

@keyframes fvoting-upvote-pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.2); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.fvoting-feature-card__info {
  flex: 1;
  min-width: 0;
}

.fvoting-feature-card__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
  line-height: 1.3;
}

.fvoting-feature-card__type {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  margin-bottom: 0.5rem;
}

.fvoting-feature-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.fvoting-feature-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border-subtle);
}

.fvoting-feature-card__status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
}

.fvoting-feature-card__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3B82F6;
}

.fvoting-feature-card__voters {
  display: flex;
  margin-left: auto;
}

.fvoting-feature-card__voter {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFFFFF;
  margin-left: -6px;
}

.fvoting-feature-card__voter:first-child {
  margin-left: 0;
}

/* Voters wrapper needs relative positioning for tooltip */
.fvoting-feature-card__voters {
  position: relative;
}

/* Fake cursor */
.fvoting-feature-card__cursor {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  bottom: -18px;
  right: -24px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.fvoting-feature-card__cursor.is-visible {
  animation: fvoting-cursor-enter 0.6s ease-out forwards;
}

.fvoting-feature-card__cursor.is-hovering {
  animation: fvoting-cursor-hover 0.8s ease-in-out forwards;
}

@keyframes fvoting-cursor-enter {
  0% { opacity: 0; transform: translate(20px, 14px); }
  100% { opacity: 1; transform: translate(0, 0); }
}

@keyframes fvoting-cursor-hover {
  0% { opacity: 1; transform: translate(0, 0); }
  100% { opacity: 1; transform: translate(-14px, -6px); }
}

/* Tooltip */
.fvoting-feature-card__tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  right: -8px;
  background: var(--text-primary, #1A202C);
  color: #FFFFFF;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  padding: 0.375rem 0.625rem;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  z-index: 11;
}

.fvoting-feature-card__tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 16px;
  border: 5px solid transparent;
  border-top-color: var(--text-primary, #1A202C);
}

.fvoting-feature-card__tooltip.is-visible {
  animation: fvoting-tooltip-show 0.3s ease-out forwards;
}

@keyframes fvoting-tooltip-show {
  0% { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* --- Section 02: Feedback Form Mockup --- */
.fvoting-form {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  margin: 0;
}

.fvoting-form__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.fvoting-form__group {
  margin-bottom: 1rem;
}

.fvoting-form__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fvoting-form__input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: var(--text-sm);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-primary);
  box-sizing: border-box;
}

.fvoting-form__select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: var(--text-sm);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  appearance: none;
  box-sizing: border-box;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.fvoting-form__textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: var(--text-sm);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-primary);
  resize: none;
  height: 80px;
  font-family: inherit;
  box-sizing: border-box;
}

.fvoting-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #FFFFFF;
  background: var(--violet-primary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: default;
}

/* --- Feedback Form: Select Dropdown Animation --- */
.fvoting-form__select-wrap {
  position: relative;
}

.fvoting-form__select.is-open {
  border-color: var(--violet-primary);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.fvoting-form__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid var(--violet-primary);
  border-top: 1px solid var(--border-subtle);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 10;
  opacity: 0;
  transform: translateY(-2px);
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.fvoting-form__dropdown.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.fvoting-form__dropdown-item {
  padding: 0.5rem 0.75rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: default;
  transition: background 0.15s;
}

.fvoting-form__dropdown-item:first-child {
  border-radius: 0;
}

.fvoting-form__dropdown-item:last-child {
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.fvoting-form__dropdown-item.is-hovered {
  background: rgba(124, 58, 237, 0.06);
  color: var(--text-primary);
}

.fvoting-form__dropdown-item.is-selected {
  background: rgba(124, 58, 237, 0.1);
  color: var(--violet-primary);
  font-weight: 600;
}

/* Fake cursor for form */
.fvoting-form__cursor {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 15;
  opacity: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.fvoting-form__cursor.is-visible {
  opacity: 1;
  transition: opacity 0.4s ease-out, top 0.6s cubic-bezier(0.22, 1, 0.36, 1), left 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Conversation Mockup (reused from tasks) --- */
.fvoting-convo {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.fvoting-convo__comment {
  padding: 1rem 1.25rem;
}

.fvoting-convo__comment + .fvoting-convo__comment {
  border-top: 1px solid var(--border-subtle);
}

.fvoting-convo__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.fvoting-convo__avatar {
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  color: #FFFFFF;
  flex-shrink: 0;
  object-fit: cover;
}

.fvoting-convo__avatar--sm {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  font-size: 0.5625rem;
}

.fvoting-convo__author {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.fvoting-convo__time {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-left: auto;
}

.fvoting-convo__body {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.fvoting-convo__actions {
  display: flex;
  gap: 0.125rem;
}

.fvoting-convo__action {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: default;
}

.fvoting-convo__action svg {
  flex-shrink: 0;
}

/* Role Badges */
.fvoting-convo__badge-role {
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.fvoting-convo__badge-role--community {
  color: #06B6D4;
  background: rgba(6, 182, 212, 0.08);
}

.fvoting-convo__badge-role--team {
  color: var(--violet-primary);
  background: rgba(124, 58, 237, 0.08);
}

/* Engage Section Animation Sequence */
.fvoting-convo--engage .fvoting-convo__comment:first-child {
  opacity: 0;
  transform: translateY(10px);
  transition: none;
}

.fvoting-convo--engage .fvoting-convo__thread--engage {
  opacity: 0;
  transform: translateY(8px);
  transition: none;
}

.fvoting-convo--engage .fvoting-convo__comment--sarah-engage {
  opacity: 0;
  transform: translateY(10px);
  transition: none;
}

/* Upvote starts inactive, transitions to active */
.fvoting-convo--engage .fvoting-convo__action--upvote-engage {
  transition: color 0.3s, background 0.3s;
}

.fvoting-convo--engage .fvoting-convo__action--upvote-engage.is-active {
  color: var(--violet-primary);
  background: rgba(124, 58, 237, 0.06);
}

.fvoting-convo--engage .fvoting-convo__action--upvote-engage.is-active svg {
  fill: currentColor;
}

.fvoting-convo--engage .fvoting-convo__action--upvote-engage.is-pulsing {
  animation: fvoting-upvote-pulse 0.25s ease-in-out;
}

@keyframes fvoting-upvote-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* Animation triggers */
.fvoting-convo--engage.fvoting-convo--active .fvoting-convo__comment:first-child {
  animation: fvoting-engage-fade-in 1s ease-out 0.3s forwards;
}

.fvoting-convo--engage.fvoting-convo--active .fvoting-convo__thread--engage {
  animation: fvoting-engage-fade-in 0.8s ease-out 0.9s forwards;
}

.fvoting-convo--engage.fvoting-convo--active .fvoting-convo__comment--sarah-engage {
  animation: fvoting-engage-fade-in 1s ease-out 3.8s forwards;
}

@keyframes fvoting-engage-fade-in {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.fvoting-convo__thread {
  margin-top: 0.75rem;
}

.fvoting-convo__thread-toggle {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--violet-primary);
  margin-bottom: 0.625rem;
  cursor: default;
}

.fvoting-convo__reply {
  padding-left: 1rem;
  border-left: 2px solid rgba(124, 58, 237, 0.15);
}

.fvoting-convo__reply .fvoting-convo__body {
  margin-bottom: 0;
}

/* --- PathFox Section --- */
.fvoting-pathfox {
  padding: var(--section-padding) 0;
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #312E81 100%);
  color: #FFFFFF;
  overflow: hidden;
}

.fvoting-pathfox__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.fvoting-pathfox__badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #F97316;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.fvoting-pathfox__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.fvoting-pathfox__desc {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: #CBD5E1;
  margin-bottom: 2rem;
  max-width: 520px;
}

.fvoting-pathfox__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 2.5rem;
}

.fvoting-pathfox__pill {
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: #E0E7FF;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-full);
}

.fvoting-pathfox__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fvoting-pathfox__img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 30px rgba(249, 115, 22, 0.15));
  transform: scale(0);
  opacity: 0;
  transition: none;
}

.fvoting-pathfox__visual.is-visible .fvoting-pathfox__img {
  animation: fvoting-bounce-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fvoting-bounce-in {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  72% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* --- Final CTA --- */
.fvoting-cta {
  padding: var(--section-padding) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.fvoting-cta__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.fvoting-cta__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.fvoting-cta__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.fvoting-cta__note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 1rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .fvoting-section__grid,
  .fvoting-pathfox__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .fvoting-section--reversed .fvoting-section__visual {
    order: -1;
  }

  .fvoting-section__visual {
    order: -1;
    max-width: 600px;
    margin: 0 auto;
  }

  .fvoting-section__bullets {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
  }

  .fvoting-pathfox__desc {
    max-width: 100%;
  }

  .fvoting-pathfox__pills {
    justify-content: center;
  }

  .fvoting-pathfox__visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .fvoting-hero {
    padding-top: calc(72px + 2rem);
  }
}

@media (max-width: 640px) {
  .fvoting-pathfox__pills {
    flex-direction: column;
    align-items: center;
  }
}
