@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Brand Colors */
  --color-primary: #F9A22D;
  --color-secondary: #DF503F;
  --color-gradient: linear-gradient(135deg, #F9A22D 0%, #DF503F 100%);
  --color-gradient-hover: linear-gradient(135deg, #FFB045 0%, #EF5F4D 100%);
  
  /* Neutral Colors */
  --color-white: #FFFFFF;
  --color-bg: #FFFFFF;
  --color-bg-alt: #FDFEFE;
  --color-text-main: #1A1D20;
  --color-text-muted: #5E6977;
  --color-border: #ECEFF4;
  --color-border-active: #DF503F;
  --color-bg-active: #FFF9F8;
  --color-shadow: rgba(0, 0, 0, 0.04);
  --color-shadow-hover: rgba(223, 80, 63, 0.08);
  --color-shadow-button: rgba(223, 80, 63, 0.25);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   BACKGROUND DECORATIVE ELEMENTS (MICROINTERATIONS)
   ========================================================================== */
.background-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.07;
  animation: floatShape 25s infinite alternate ease-in-out;
}

.floating-shape-1 {
  top: -10%;
  left: -10%;
  width: 45vw;
  height: 45vw;
  background-color: var(--color-primary);
  animation-duration: 20s;
}

.floating-shape-2 {
  bottom: -15%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background-color: var(--color-secondary);
  animation-duration: 28s;
}

/* Decorative sparkles and stars */
.sparkle {
  position: absolute;
  pointer-events: none;
  opacity: 0.3;
  transition: opacity var(--transition-normal);
}

.sparkle-star {
  width: 24px;
  height: 24px;
  animation: rotateStar 8s infinite linear;
}

.sparkle-star svg {
  fill: var(--color-primary);
  width: 100%;
  height: 100%;
}

.sparkle-star-alt svg {
  fill: var(--color-secondary);
}

.sparkle-1 { top: 15%; left: 10%; animation-duration: 12s; }
.sparkle-2 { top: 25%; right: 12%; animation-duration: 9s; }
.sparkle-3 { bottom: 20%; left: 8%; animation-duration: 15s; }
.sparkle-4 { bottom: 15%; right: 15%; animation-duration: 10s; }

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1 {
  font-weight: 800;
  font-size: 2.8rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--color-text-main);
}

h2 {
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--color-text-main);
}

h3 {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-text-main);
}

p {
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */
.app-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header {
  width: 100%;
  padding: 32px 24px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 20;
  transition: all var(--transition-normal);
}

.logo-container {
  max-width: 520px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-img {
  width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: contain;
}

/* Page states */
.page {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.page.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   TELA INICIAL (HOME)
   ========================================================================== */
.home-page {
  text-align: center;
  align-items: center;
  padding: 40px 0;
}

.home-content {
  max-width: 620px;
  margin: 0 auto;
}

.home-title {
  margin-bottom: 24px;
  background: var(--color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 48px;
}

.home-button-wrapper {
  position: relative;
  display: inline-block;
}

.home-button-star-1 {
  position: absolute;
  top: -24px;
  left: -24px;
  width: 32px;
  height: 32px;
  animation: rotateStar 6s infinite linear;
}

.home-button-star-2 {
  position: absolute;
  bottom: -20px;
  right: -24px;
  width: 28px;
  height: 28px;
  animation: rotateStar 8s infinite linear reverse;
}

/* ==========================================================================
   PROGRESS BAR
   ========================================================================== */
.progress-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 32px;
  padding: 0 16px;
  display: none; /* Only visible on quiz pages */
  flex-direction: column;
  gap: 8px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.progress-track {
  width: 100%;
  height: 8px;
  background-color: var(--color-border);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--color-gradient);
  border-radius: 99px;
  transition: width var(--transition-normal) ease-out;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: progressShine 2s infinite linear;
  background-size: 200% 100%;
}

/* ==========================================================================
   STRUCTURE OF QUESTIONS
   ========================================================================== */
.question-page {
  padding: 16px 0;
}

.question-badge-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.question-number-badge {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--color-gradient);
  color: var(--color-white);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.2rem;
  font-weight: 800;
  box-shadow: 0 8px 24px var(--color-shadow-button);
  position: relative;
  overflow: hidden;
}

.question-number-badge::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 80%);
}

.question-meta {
  display: flex;
  flex-direction: column;
}

.question-meta .meta-label {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-secondary);
  letter-spacing: 0.05em;
}

.question-meta .meta-sub {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.question-statement {
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--color-text-main);
  margin-bottom: 32px;
}

/* Alternatives list */
.alternatives-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

/* ALTERNATIVES CARDS */
.alternative-card {
  background-color: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: 16px;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition-fast) ease;
  box-shadow: 0 4px 12px var(--color-shadow);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.alternative-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
  box-shadow: 0 10px 20px var(--color-shadow-hover);
}

.alternative-card:active {
  transform: translateY(-1px);
}

.alternative-letter {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-border);
  color: var(--color-text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: all var(--transition-fast) ease;
}

.alternative-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text-main);
  line-height: 1.4;
  flex: 1;
}

/* Selected state */
.alternative-card.selected {
  border-color: var(--color-border-active);
  background-color: var(--color-bg-active);
  box-shadow: 0 8px 24px rgba(223, 80, 63, 0.08);
}

.alternative-card.selected .alternative-letter {
  background-color: var(--color-secondary);
  color: var(--color-white);
  box-shadow: 0 4px 10px rgba(223, 80, 63, 0.2);
}

.alternative-card.selected .alternative-text {
  color: var(--color-secondary);
  font-weight: 600;
}

/* Checkmark indicator inside selected card */
.alternative-card::before {
  content: '';
  position: absolute;
  right: 24px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-secondary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--transition-fast) ease;
}

.alternative-card.selected::before {
  opacity: 1;
  transform: scale(1);
}

.alternative-card.selected {
  padding-right: 60px; /* Leave space for checkmark */
}

/* ==========================================================================
   PERGUNTA 3 ESPECIAL: RANKING LAYOUT
   ========================================================================== */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.ranking-card {
  background-color: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all var(--transition-fast) ease;
  box-shadow: 0 4px 12px var(--color-shadow);
}


.ranking-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 6px 15px var(--color-shadow-hover);
}

.ranking-card-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.ranking-index {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background-color: var(--color-border);
  color: var(--color-text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.ranking-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-main);
  line-height: 1.35;
}

/* Selector styling */
.ranking-selector {
  display: flex;
  align-items: center;
  background-color: var(--color-border);
  padding: 4px;
  border-radius: 12px;
  gap: 6px;
}

.ranking-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background-color: var(--color-white);
  color: var(--color-text-main);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all var(--transition-fast) ease;
  user-select: none;
}

.ranking-btn:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.ranking-btn:active {
  transform: scale(0.9);
}

.ranking-value-display {
  width: 24px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-secondary);
  user-select: none;
}

/* Error visual cue on duplicated values */
.ranking-card.error {
  animation: shakeCard 0.5s ease-in-out;
  border-color: #e03c3c;
  background-color: #fff5f5;
}

.ranking-card.error .ranking-value-display {
  color: #e03c3c;
}

.ranking-card.error .ranking-selector {
  background-color: #fce8e8;
}

.ranking-card.error .ranking-btn {
  color: #e03c3c;
}

.ranking-card.error .ranking-btn:hover {
  background-color: #e03c3c;
  color: var(--color-white);
}

.ranking-error-toast {
  background-color: #ffebeb;
  border: 1px solid #ffcccc;
  color: #d93838;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 24px;
  display: none;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.3s ease;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navigation-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1.5px dashed var(--color-border);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  font-family: var(--font-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Primary Pulse button */
.btn-primary {
  background: var(--color-gradient);
  color: var(--color-white);
  box-shadow: 0 8px 25px var(--color-shadow-button);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  transition: none;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(223, 80, 63, 0.4);
  background: var(--color-gradient-hover);
}

.btn-primary:hover::after {
  transform: translateX(100%);
  transition: transform 0.8s ease-in-out;
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.99);
}

/* Elegant Pulsing animation on Home button */
.btn-pulse {
  animation: pulseButton 2.5s infinite;
}

/* Secondary outline button (Voltar) */
.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--color-border);
  color: var(--color-text-muted);
}

.btn-secondary:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text-main);
  background-color: var(--color-border);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Disabled button state */
.btn:disabled {
  background: #E5E9F0 !important;
  color: #A3B2C5 !important;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
  border-color: #E5E9F0 !important;
}

.btn-arrow {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow-right {
  transform: translateX(4px);
}

.btn:hover .btn-arrow-left {
  transform: translateX(-4px);
}

/* ==========================================================================
   TELA FINAL (RESULTS DASHBOARD)
   ========================================================================== */
.results-page {
  text-align: center;
  align-items: center;
  padding: 32px 0;
}

.results-card {
  background-color: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  box-shadow: 0 10px 40px var(--color-shadow);
  margin-bottom: 32px;
  text-align: left;
}

.results-header-box {
  text-align: center;
  margin-bottom: 40px;
}

.success-animation {
  width: 80px;
  height: 80px;
  background-color: #E2F6EA;
  color: #27AE60;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.results-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--color-text-main);
}

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

/* Dashboard score breakdown grid */
.overall-score-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
  text-align: center;
}

.radial-score-container {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.radial-score-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.radial-track {
  fill: none;
  stroke: var(--color-border);
  stroke-width: 12px;
}

.radial-fill {
  fill: none;
  stroke: url(#scoreGradient);
  stroke-width: 12px;
  stroke-linecap: round;
  stroke-dasharray: 439.8; /* 2 * PI * 70 */
  stroke-dashoffset: 439.8;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.radial-score-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.radial-score-value {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-text-main);
  line-height: 1;
}

.radial-score-percent {
  font-size: 1.5rem;
  font-weight: 700;
  vertical-align: super;
}

.radial-score-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.overall-feedback-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

.overall-feedback-text {
  font-size: 1.05rem;
  max-width: 580px;
  line-height: 1.6;
}

/* Pillar Progress bars */
.pillars-section-title {
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  border-bottom: 1.5px solid var(--color-border);
  padding-bottom: 12px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  margin-bottom: 40px;
}

.pillar-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pillar-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}

.pillar-name {
  font-size: 1rem;
  color: var(--color-text-main);
}

.pillar-score {
  font-size: 1rem;
  color: var(--color-secondary);
}

.pillar-bar-track {
  width: 100%;
  height: 10px;
  background-color: var(--color-border);
  border-radius: 99px;
  overflow: hidden;
}

.pillar-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--color-gradient);
  border-radius: 99px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pillar Detailed diagnostic description card */
.detailed-diagnostic-card {
  background-color: var(--color-bg-active);
  border: 1.5px solid #FFECE5;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}

.detailed-diagnostic-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detailed-diagnostic-title svg {
  fill: var(--color-secondary);
  width: 20px;
  height: 20px;
}

.detailed-diagnostic-desc {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-text-main);
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes floatShape {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6%, -8%) scale(1.05); }
  100% { transform: translate(-4%, 4%) scale(0.95); }
}

@keyframes rotateStar {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseButton {
  0% {
    box-shadow: 0 8px 25px rgba(223, 80, 63, 0.25);
  }
  50% {
    box-shadow: 0 12px 35px rgba(223, 80, 63, 0.5), 0 0 0 10px rgba(223, 80, 63, 0.12);
  }
  100% {
    box-shadow: 0 8px 25px rgba(223, 80, 63, 0.25);
  }
}

@keyframes progressShine {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes shakeCard {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.1);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================================================
   RESPONSIVENESS (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 768px) {
  body {
    padding: 0;
  }
  
  .header {
    padding: 24px 16px 8px;
  }
  
  .logo-container {
    max-width: 380px;
  }
  
  .app-container {
    padding: 16px;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .home-subtitle {
    font-size: 1.05rem;
    margin-bottom: 36px;
  }
  
  .question-number-badge {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    border-radius: 16px;
  }
  
  .question-badge-container {
    gap: 12px;
    margin-bottom: 20px;
  }
  
  .question-statement {
    font-size: 1.15rem;
    margin-bottom: 24px;
  }
  
  .alternative-card {
    padding: 16px 20px;
    border-radius: 14px;
  }
  
  .alternative-letter {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }
  
  .alternative-text {
    font-size: 0.95rem;
  }
  
  .ranking-card {
    padding: 14px 16px;
    border-radius: 14px;
  }
  
  .ranking-label {
    font-size: 0.95rem;
  }
  
  .ranking-btn {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }
  
  .ranking-value-display {
    font-size: 1rem;
  }
  
  .btn {
    padding: 14px 28px;
    font-size: 0.95rem;
    border-radius: 12px;
  }
  
  .results-card {
    padding: 24px;
    border-radius: 20px;
  }
  
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .radial-score-container {
    width: 130px;
    height: 130px;
  }
  
  .radial-score-value {
    font-size: 2.2rem;
  }
  
  .floating-shape {
    filter: blur(50px);
  }
}

@media (max-width: 480px) {
  .logo-container {
    max-width: 300px;
  }
  
  h1 {
    font-size: 1.85rem;
  }
  
  .navigation-bar {
    flex-direction: column-reverse;
    gap: 12px;
    border-top: none;
    padding-top: 12px;
  }
  
  .navigation-bar .btn {
    width: 100%;
  }
  
  .question-statement {
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   DECORATIVE BACKGROUND ELEMENTS STYLING
   ========================================================================== */
.decor-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.15;
}

.decor-dot-1 {
  top: 18%;
  left: 25%;
  width: 12px;
  height: 12px;
  background-color: var(--color-primary);
  animation: floatDot 6s infinite alternate ease-in-out;
}

.decor-dot-2 {
  top: 60%;
  right: 20%;
  width: 8px;
  height: 8px;
  background-color: var(--color-secondary);
  animation: floatDot 8s infinite alternate ease-in-out;
}

.decor-dot-3 {
  bottom: 30%;
  left: 18%;
  width: 16px;
  height: 16px;
  background-color: var(--color-secondary);
  animation: floatDot 10s infinite alternate ease-in-out;
}

.decor-dot-4 {
  top: 45%;
  left: 80%;
  width: 10px;
  height: 10px;
  background-color: var(--color-primary);
  animation: floatDot 7s infinite alternate ease-in-out;
}

.organic-curves-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  pointer-events: none;
}

@keyframes floatDot {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-12px) scale(1.1); }
}

/* ==========================================================================
   NAME INPUT STYLING
   ========================================================================== */
.user-info-form-container {
  margin-bottom: 40px;
  text-align: left;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.name-input-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.name-input-field {
  width: 100%;
  padding: 16px 20px;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 14px;
  border: 1.5px solid var(--color-border);
  background-color: var(--color-white);
  color: var(--color-text-main);
  transition: all var(--transition-fast) ease;
  font-family: var(--font-primary);
  box-shadow: 0 4px 12px var(--color-shadow);
}

.name-input-field:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px var(--color-shadow-hover);
}

/* ==========================================================================
   RESULTS ACTIONS STYLING
   ========================================================================== */
.results-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
}

@media (max-width: 580px) {
  .results-actions {
    flex-direction: column;
    gap: 12px;
  }
  .results-actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   COMPETENCIES RESULTS STACK & CARDS
   ========================================================================== */
.competencies-results-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
  text-align: left;
}

.competency-result-card {
  background-color: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 4px 12px var(--color-shadow);
  transition: transform var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
}

.competency-result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--color-shadow-hover);
}

.comp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.comp-card-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text-main);
  letter-spacing: -0.01em;
}

.comp-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comp-level-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
  letter-spacing: 0.05em;
}

.badge-comprometida {
  background-color: #FCE8E8;
  color: #DF503F;
}

.badge-desenvolvimento {
  background-color: #FFF2E6;
  color: #F9A22D;
}

.badge-consistente {
  background-color: #EBF7EE;
  color: #27AE60;
}

.badge-estrategico {
  background-color: #E6F3FC;
  color: #2980B9;
}

.comp-score-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary);
}

.comp-bar-track {
  width: 100%;
  height: 8px;
  background-color: var(--color-border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 12px;
}

.comp-bar-fill {
  height: 100%;
  background: var(--color-gradient);
  border-radius: 99px;
  transition: width 1s ease-out;
}

.comp-card-summary {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}

/* ==========================================================================
   RANKING LEGEND BAR (Q3)
   ========================================================================== */
.ranking-legend-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #FFF9F8;
  border: 1px dashed var(--color-primary-light);
  border-radius: 12px;
  padding: 12px 20px;
  margin-bottom: 24px;
  width: 100%;
}

.legend-text {
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-bad {
  color: var(--color-secondary);
}

.legend-good {
  color: var(--color-primary);
}

.legend-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: currentColor;
  color: var(--color-white);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.legend-connector {
  flex-grow: 1;
  height: 2px;
  background-color: var(--color-border);
  margin: 0 16px;
  border-radius: 99px;
  opacity: 0.6;
}

@media (max-width: 480px) {
  .ranking-legend-bar {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .legend-connector {
    display: none;
  }
}

/* ==========================================================================
   RANKING SLIDER INTERACTIVE CONTROLS (Q3)
   ========================================================================== */
.ranking-card.ranking-card-slider-layout {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 22px 24px;
}

.ranking-slider-wrapper {
  width: 100%;
  max-width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ranking-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: var(--color-border);
  border-radius: 99px;
  outline: none;
  margin: 12px 0;
  cursor: pointer;
}

/* Chrome/Safari/Edge Track */
.ranking-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, #F9A22D 0%, #DF503F 100%);
  border-radius: 99px;
}

/* Firefox Track */
.ranking-slider::-moz-range-track {
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, #F9A22D 0%, #DF503F 100%);
  border-radius: 99px;
}

/* Chrome/Safari/Edge Thumb */
.ranking-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-white);
  border: 4px solid #DF503F;
  box-shadow: 0 3px 8px rgba(223, 80, 63, 0.35);
  cursor: pointer;
  margin-top: -8px; /* Webkit requires manual centering */
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.ranking-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background-color: #FFF9F8;
}

/* Firefox Thumb */
.ranking-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-white);
  border: 4px solid #DF503F;
  box-shadow: 0 3px 8px rgba(223, 80, 63, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.ranking-slider::-moz-range-thumb:hover {
  transform: scale(1.15);
  background-color: #FFF9F8;
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
}

.slider-ticks .tick {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.15s ease, font-weight 0.15s ease;
  user-select: none;
}

.slider-ticks .tick.active {
  color: #DF503F;
  font-weight: 800;
}

/* Mobile responsive layout for slider cards */
@media (max-width: 768px) {
  .ranking-card.ranking-card-slider-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 20px;
  }
  
  .ranking-slider-wrapper {
    max-width: 100%;
  }
}

