/* results-display.css - Part 1: Base, Layout and Tab Navigation */

/* ===== Base Container Styles ===== */
:root {
  --primary: #0073e6;
  --primary-dark: #005bb5;
  --primary-light: #e6f3ff;
  --secondary: #6c757d;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;
  --light: #f8f9fa;
  --dark: #343a40;
  --white: #fff;
  --text: #333;
  --text-light: #666;
  --gray-light: #f8f9fa;
  --gray-medium: #e9ecef;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.results-container {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Results Header */
.results-header {
  text-align: center;
  margin-bottom: 30px;
}

.results-header h2 {
  color: var(--primary);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 10px 0;
}

.results-subtitle {
  color: var(--text-light);
  font-size: clamp(0.875rem, 2vw, 1rem);
  margin: 0;
}

/* Panel Intro - Used across different panels */
.panel-intro {
  margin-bottom: 20px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}

/* Panel Title */
.panel-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #003087;
  margin-bottom: 10px;
}

/* ===== COLORFUL PILL TAB DESIGN ===== */

/* Clean container for symmetrical layout */
.ifs-tab-navigation {
  display: flex;
  flex-wrap: wrap;
  background: transparent;
  border: none;
  padding: 12px 0;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

/* Pill-shaped tab buttons */
.ifs-tab-navigation .ifs-tab-button {
  flex: 0 0 auto;
  /* Let the button size itself */
  min-width: 160px;
  max-width: 200px;
  height: 42px;
  padding: 10px 18px;
  border: 2px solid transparent;
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 21px;
  /* Perfect pill shape */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hide icons completely */
.ifs-tab-navigation .ifs-tab-button .tab-icon {
  display: none;
}

/* Clean text styling */
.ifs-tab-navigation .ifs-tab-button .tab-title {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  margin: 0;
  line-height: 1;
}

/* Remove wrapper styling */
.ifs-tab-navigation .ifs-tab-button .tab-content {
  flex: none;
  text-align: inherit;
  min-width: auto;
}

/* --- Color Coding for IFS Test --- */
.ifs-tab-navigation .ifs-tab-button[data-tab="selfLeadership"] {
  color: #5b9bff;
  border-color: #5b9bff;
}

.ifs-tab-navigation .ifs-tab-button[data-tab="selfLeadership"].active {
  background: #5b9bff;
  color: white;
}

.ifs-tab-navigation .ifs-tab-button[data-tab="managerParts"] {
  color: #10b981;
  border-color: #10b981;
}

.ifs-tab-navigation .ifs-tab-button[data-tab="managerParts"].active {
  background: #10b981;
  color: white;
}

.ifs-tab-navigation .ifs-tab-button[data-tab="firefighterParts"] {
  color: #f59e0b;
  border-color: #f59e0b;
}

.ifs-tab-navigation .ifs-tab-button[data-tab="firefighterParts"].active {
  background: #f59e0b;
  color: white;
}

.ifs-tab-navigation .ifs-tab-button[data-tab="exileParts"] {
  color: #ef4444;
  border-color: #ef4444;
}

.ifs-tab-navigation .ifs-tab-button[data-tab="exileParts"].active {
  background: #ef4444;
  color: white;
}

.ifs-tab-navigation .ifs-tab-button[data-tab="partsRelationships"] {
  color: #3f9bff;
  border-color: #3f9bff;
}

.ifs-tab-navigation .ifs-tab-button[data-tab="partsRelationships"].active {
  background: #3f9bff;
  color: white;
}

.ifs-tab-navigation .ifs-tab-button[data-tab="developmentPath"] {
  color: #06b6d4;
  border-color: #06b6d4;
}

.ifs-tab-navigation .ifs-tab-button[data-tab="developmentPath"].active {
  background: #06b6d4;
  color: white;
}

/* --- Color Coding for Career Test --- */
.tabs-navigation .tab-button[data-tab="careers"] {
  color: #0073e6;
  border-color: #0073e6;
}

.tabs-navigation .tab-button[data-tab="careers"].active {
  background: #0073e6;
  color: white;
}

.tabs-navigation .tab-button[data-tab="avoid"] {
  color: #dc3545;
  border-color: #dc3545;
}

.tabs-navigation .tab-button[data-tab="avoid"].active {
  background: #dc3545;
  color: white;
}

.tabs-navigation .tab-button[data-tab="operating"] {
  color: #17a2b8;
  border-color: #17a2b8;
}

.tabs-navigation .tab-button[data-tab="operating"].active {
  background: #17a2b8;
  color: white;
}

.tabs-navigation .tab-button[data-tab="accelerators"] {
  color: #28a745;
  border-color: #28a745;
}

.tabs-navigation .tab-button[data-tab="accelerators"].active {
  background: #28a745;
  color: white;
}

.tabs-navigation .tab-button[data-tab="frontier"] {
  color: #ffc107;
  border-color: #ffc107;
}

.tabs-navigation .tab-button[data-tab="frontier"].active {
  background: #ffc107;
  color: #212529;
}

.tabs-navigation .tab-button[data-tab="transition"] {
  color: #6c757d;
  border-color: #6c757d;
}

.tabs-navigation .tab-button[data-tab="transition"].active {
  background: #6c757d;
  color: white;
}

/* --- Color Coding for Comprehensive Test --- */
.tabs-navigation .tab-button[data-tab="dynamics"] {
  color: #0073e6;
  border-color: #0073e6;
}

.tabs-navigation .tab-button[data-tab="dynamics"].active {
  background: #0073e6;
  color: white;
}

.tabs-navigation .tab-button[data-tab="insights"] {
  color: #28a745;
  border-color: #28a745;
}

.tabs-navigation .tab-button[data-tab="insights"].active {
  background: #28a745;
  color: white;
}

.tabs-navigation .tab-button[data-tab="patterns"] {
  color: #6c5ce7;
  border-color: #6c5ce7;
}

.tabs-navigation .tab-button[data-tab="patterns"].active {
  background: #6c5ce7;
  color: white;
}

.tabs-navigation .tab-button[data-tab="pathways"] {
  color: #fd7e14;
  border-color: #fd7e14;
}

.tabs-navigation .tab-button[data-tab="pathways"].active {
  background: #fd7e14;
  color: white;
}

.tabs-navigation .tab-button[data-tab="enhanced"] {
  color: #17a2b8;
  border-color: #17a2b8;
}

.tabs-navigation .tab-button[data-tab="enhanced"].active {
  background: #17a2b8;
  color: white;
}

.tabs-navigation .tab-button[data-tab="metatraits"] {
  color: #6c5ce7;
  border-color: #6c5ce7;
}

.tabs-navigation .tab-button[data-tab="metatraits"].active {
  background: #6c5ce7;
  color: white;
}

/* Standard tabs container for Career and Comprehensive */
.tabs-navigation {
  display: flex;
  flex-wrap: wrap;
  background: transparent;
  border: none;
  padding: 12px 0;
  gap: 8px;
  /* Slightly smaller gap for standard tabs */
  justify-content: center;
  margin-bottom: 20px;
}

/* Standard tab button style */
.tabs-navigation .tab-button {
  flex: 0 0 auto;
  min-width: 120px;
  height: 38px;
  padding: 8px 16px;
  background: #f8fafc;
  border: 2px solid transparent;
  /* Border is used for color */
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  border-radius: 19px;
  /* Pill shape */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hover effects for all tabs */
.ifs-tab-navigation .ifs-tab-button:hover:not(.active),
.tabs-navigation .tab-button:hover:not(.active) {
  background: #f1f5f9;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* --- Responsive Layout for Symmetry --- */

/* For 4 buttons (Comprehensive), create a 2x2 grid on medium screens */
.tabs-navigation.tab-count-4 {
  max-width: 500px;
  /* Constrain width to encourage wrapping */
  margin-left: auto;
  margin-right: auto;
}

.tabs-navigation.tab-count-4 .tab-button {
  flex-basis: calc(50% - 4px);
  /* 2 per row */
}

/* For 6 buttons (Career, IFS), create a 3x2 grid on medium screens */
.tabs-navigation.tab-count-6,
.ifs-tab-navigation.tab-count-6 {
  max-width: 700px;
  /* Adjust as needed */
  margin-left: auto;
  margin-right: auto;
}

.tabs-navigation.tab-count-6 .tab-button,
.ifs-tab-navigation.tab-count-6 .ifs-tab-button {
  flex-basis: calc(33.333% - 6px);
  /* 3 per row */
}

/* On smaller screens, all tabs stack vertically */
@media (max-width: 768px) {

  .tabs-navigation,
  .ifs-tab-navigation {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .tabs-navigation .tab-button,
  .ifs-tab-navigation .ifs-tab-button {
    width: 100%;
    max-width: 320px;
    /* Prevent wide buttons on tablets */
  }
}

/* ===== END COLORFUL PILL TAB DESIGN ===== */

/* Panel animation */
.ifs-tab-panel,
.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.ifs-tab-panel.active,
.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Linear Sections (Basic/Comprehensive) ===== */
.analysis-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.analysis-section {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--gray-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.analysis-section:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.analysis-section h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin: 0 0 15px 0;
}

.section-content p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0 0 10px 0;
  line-height: 1.6;
}

/* Section Variants */
.section-0 {
  border-left: 5px solid #0073e6;
}

.section-1 {
  border-left: 5px solid #28a745;
}

.section-2 {
  border-left: 5px solid #f5a623;
}

.section-3 {
  border-left: 5px solid #6c5ce7;
}

/* ===== Action Buttons ===== */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.action-buttons button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: 500;
}

.action-buttons button:hover {
  background: var(--primary-dark);
}

.restart-button {
  background: var(--gray-light) !important;
  color: var(--text) !important;
  border: 1px solid var(--gray-medium) !important;
}

.restart-button:hover {
  background: var(--gray-medium) !important;
}

/* Payment Note */
.payment-note {
  margin-top: 30px;
  padding: 15px;
  border-top: 1px solid var(--gray-medium);
  font-size: 0.9rem;
  color: var(--text-light);
  text-align: center;
}

/* ===== Shared Card Grid Layouts ===== */
.careers-list,
.avoid-list,
.work-style-viz,
.dev-categories,
.personality-insights-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
  width: 100%;
}

/* results-display.css - Part 2: Career Panels and Skills Section */

/* ===== Career Direction Panel ===== */
.career-item {
  background: var(--gray-light);
  border-radius: var(--radius-md);
  padding: 20px;
  border-left: 4px solid var(--primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
  word-wrap: break-word;
}

.career-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

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

.career-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
  min-width: 220px;
}

.career-metrics {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex: 0 0 auto;
}

.salary-range {
  font-weight: 600;
  color: var(--primary-dark);
}

.match-score {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  background: var(--primary);
  padding: 3px 8px;
  border-radius: 20px;
}

.career-description {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* ===== Quick Alternatives Section ===== */
.quick-alternatives-section {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 2px dashed var(--gray-light);
}

.alt-header {
  margin-bottom: 15px;
}

.alt-header h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 5px 0;
}

.alt-header h4 i {
  color: #f59e0b;
}

.alt-subtitle {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

.quick-alternatives-container {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.quick-alternatives-container::-webkit-scrollbar {
  height: 6px;
}

.quick-alternatives-container::-webkit-scrollbar-track {
  background: var(--gray-light);
  border-radius: 3px;
}

.quick-alternatives-container::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

.quick-alt-card {
  flex: 0 0 200px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #7dd3fc;
  border-radius: var(--radius-md);
  padding: 15px;
  scroll-snap-align: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-alt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(14, 165, 233, 0.15);
}

.alt-title {
  font-weight: 600;
  color: #0369a1;
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.alt-salary {
  font-size: 0.8rem;
  color: #0891b2;
  font-weight: 500;
  margin-bottom: 8px;
}

.alt-reason {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* Effort Level Badges */
.effort-tag {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 12px;
  white-space: nowrap;
  margin-left: 5px;
}

.effort-tag.quick-win {
  background-color: #e7f5ea;
  color: #28a745;
}

.effort-tag.moderate {
  background-color: #e6f3ff;
  color: #0073e6;
}

.effort-tag.high-investment {
  background-color: #fff3e6;
  color: #fd7e14;
}

.career-item.effort-quick-win {
  border-left-color: #28a745;
}

.career-item.effort-moderate {
  border-left-color: #0073e6;
}

.career-item.effort-high-investment {
  border-left-color: #fd7e14;
}

/* Salary Status Indicators */
.salary-status {
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 12px;
  margin-top: 3px;
  display: block;
}

.salary-status.meets {
  background-color: #e7f5ea;
  color: #28a745;
}

.salary-status.with-experience {
  background-color: #fff3e6;
  color: #fd7e14;
}

.salary-status.does-not-meet {
  background-color: #feecef;
  color: #dc3545;
}

/* Reality Check Notes */
.reality-check-note {
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 15px;
  border-radius: var(--radius-md);
  margin-top: 20px;
}

.reality-check-note h4 {
  margin: 0 0 10px 0;
  color: #b38500;
}

.reality-check-note p {
  margin: 0;
  font-size: 0.9rem;
  color: #6d5200;
}

/* ===== Careers to Avoid Panel ===== */
.avoid-item {
  background: #fff5f5;
  border-radius: var(--radius-md);
  padding: 20px;
  border-left: 4px solid #dc3545;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
  word-wrap: break-word;
}

.avoid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.1);
}

.avoid-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.avoid-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #dc3545;
  line-height: 1.3;
  flex: 1;
  min-width: 220px;
}

.avoid-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: #dc3545;
  padding: 3px 8px;
  border-radius: 20px;
  flex: 0 0 auto;
  align-self: flex-start;
  white-space: nowrap;
}

.avoid-reason {
  color: #6c2a30;
  font-size: 0.9rem;
  margin: 0;
}

.explanation-note {
  background: #f8f9fa;
  border-left: 4px solid #6c757d;
  padding: 15px;
  border-radius: var(--radius-md);
  margin-top: 20px;
}

.explanation-note h4 {
  margin: 0 0 10px 0;
  color: #495057;
}

.explanation-note p {
  margin: 0;
  font-size: 0.9rem;
  color: #6c757d;
}

/* ===== Professional Operating System ===== */
.work-style-category {
  background: var(--gray-light);
  border-radius: var(--radius-md);
  padding: 20px;
  border-left: 4px solid #17a2b8;
  transition: transform 0.3s ease;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
  word-wrap: break-word;
}

.work-style-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}

.category-header {
  margin-bottom: 10px;
}

.category-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #17a2b8;
}

.category-description {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

/* ===== Performance Accelerators Panel (Skills Table) - Optimized for mobile ===== */
/* Mobile-friendly skills section */
.skills-panel {
  width: 100%;
}

.skills-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .skills-cards {
    grid-template-columns: 1fr;
  }
}


.skill-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 15px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

.skill-name {
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  font-size: 1rem;
}

.priority-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

.priority-badge.high {
  background-color: #28a745;
}

.priority-badge.critical {
  background: linear-gradient(135deg, #dc3545 0%, #8b0000 100%);
}

.priority-badge.medium {
  background-color: #fd7e14;
}

.priority-badge.low {
  background-color: #6c757d;
}

.skill-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-impact {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

.skill-timeline {
  font-size: 0.8rem;
  color: var(--secondary);
  margin: 0;
  border-top: 1px solid var(--gray-medium);
  padding-top: 8px;
}

/* Traditional Skills Table (only visible on larger screens) */
.skills-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  border: 1px solid var(--gray-medium);
  display: none;
  /* Hidden by default, shown on larger screens */
}

.skills-table th,
.skills-table td {
  padding: 10px 20px;
  text-align: left;
  border-bottom: 1px solid var(--gray-medium);
  vertical-align: middle;
}

.skills-table th {
  background: var(--gray-light);
  font-weight: 600;
  color: var(--text);
}

.skills-table tr:hover {
  background: rgba(0, 115, 230, 0.05);
}

.learning-note {
  background: #e8f4f8;
  border-left: 4px solid #17a2b8;
  padding: 15px;
  border-radius: var(--radius-md);
}

.learning-note h4 {
  margin: 0 0 10px 0;
  color: #17a2b8;
}

.learning-note p {
  margin: 0;
  font-size: 0.9rem;
  color: #0c5460;
  line-height: 1.5;
}

/* ===== Development Frontiers Panel ===== */
.dev-category-item {
  display: flex;
  background: var(--gray-light);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform 0.3s ease;
  gap: 15px;
  align-items: flex-start;
  border-left: 4px solid #ffc107;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
  word-wrap: break-word;
}

.dev-category-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}

.category-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.category-content {
  flex-grow: 1;
}

.category-content h3 {
  margin: 0 0 10px 0;
  font-size: 1.1rem;
  color: var(--primary);
}

.category-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* results-display.css - Part 3: Transition Timeline & Personality Panels */

/* ===== Transition Plan / Timeline - Optimized for mobile ===== */
.simplified-timeline {
  font-family: 'Poppins', sans-serif;
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.timeline-phases {
  position: relative;
  padding: 0 0 30px 0;
  margin: 30px 0;
}

/* Create vertical line */
.timeline-phases::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 34px;
  width: 4px;
  background-color: #e9ecef;
  border-radius: 4px;
}

.timeline-phase {
  position: relative;
  padding-left: 80px;
  margin-bottom: 30px;
  min-height: 80px;
}

/* Phase number circle */
.phase-number {
  position: absolute;
  left: 20px;
  top: 0;
  width: 32px;
  height: 32px;
  background-color: #0073e6;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Phase header styling */
.phase-header {
  margin-bottom: 15px;
}

.phase-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.phase-title h4 {
  margin: 0;
  color: #0073e6;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Phase duration badge */
.phase-duration {
  display: inline-block;
  font-size: 0.8rem;
  background-color: #f0f4f8;
  color: #455a64;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: normal;
}

/* Phase content card */
.phase-content {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #0073e6;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.phase-content:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.phase-description {
  margin: 0;
  color: #495057;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Phase tasks list */
.phase-tasks {
  margin: 15px 0;
  padding-left: 20px;
}

.phase-tasks li {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #495057;
  line-height: 1.5;
}

/* Phase salary info */
.phase-salary {
  background-color: #f0f7ff;
  padding: 10px;
  border-radius: 4px;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  margin-top: 15px;
}

.salary-label {
  color: #6c757d;
  margin-bottom: 5px;
}

.salary-value {
  font-weight: 600;
  color: #0073e6;
}

/* Timeline footer */
.timeline-footer {
  padding: 15px 10px;
  border-top: 1px solid #e9ecef;
}

.timeline-note {
  font-size: 0.85rem;
  color: #6c757d;
  margin: 0;
  text-align: center;
}

/* Subtle differentiation between phases */
.timeline-phase:nth-child(1) .phase-number,
.timeline-phase:nth-child(1) .phase-content {
  border-left-color: #0073e6;
  /* Blue */
}

.timeline-phase:nth-child(2) .phase-number,
.timeline-phase:nth-child(2) .phase-content {
  border-left-color: #2b88d8;
  /* Slightly different blue */
}

.timeline-phase:nth-child(3) .phase-number,
.timeline-phase:nth-child(3) .phase-content {
  border-left-color: #4a9bdf;
  /* Lighter blue */
}

.timeline-phase:nth-child(4) .phase-number,
.timeline-phase:nth-child(4) .phase-content {
  border-left-color: #64a8ff;
  /* Even lighter blue */
}

/* ===== Personality Panel Styling (Comprehensive Test) ===== */
.personality-panel {
  padding: 15px 20px;
  background: white;
  border-radius: 8px;
}

.personality-insights-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.personality-insight-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  border-left: 4px solid #0073e6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
  word-wrap: break-word;
}

.personality-insight-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 115, 230, 0.1);
}

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

.personality-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #0073e6;
  font-weight: 600;
}

.personality-description {
  color: #495057;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Tab-specific panel styling */
#dynamics-tab .personality-insight-item {
  border-left-color: #0073e6;
}

#dynamics-tab .personality-header h3,
#dynamics-tab .personality-score {
  color: #0073e6;
}

#dynamics-tab .personality-score {
  background-color: #e6f3ff;
  color: #0073e6;
}

#insights-tab .personality-insight-item {
  border-left-color: #28a745;
}

#insights-tab .personality-header h3 {
  color: #28a745;
}

#insights-tab .personality-score {
  background-color: #e7f5ea;
  color: #28a745;
}

#patterns-tab .personality-insight-item {
  border-left-color: #6c5ce7;
}

#patterns-tab .personality-header h3 {
  color: #6c5ce7;
}

#patterns-tab .personality-score {
  background-color: #efedfb;
  color: #6c5ce7;
}

#pathways-tab .personality-insight-item {
  border-left-color: #fd7e14;
}

#pathways-tab .personality-header h3 {
  color: #fd7e14;
}

#pathways-tab .personality-score {
  background-color: #fff3e6;
  color: #fd7e14;
}

#enhanced-tab .personality-insight-item {
  border-left-color: #17a2b8;
}

#enhanced-tab .personality-header h3 {
  color: #17a2b8;
}

#enhanced-tab .personality-score {
  background-color: #e0f7fa;
  color: #17a2b8;
}

#enhanced-tab .dimension-card {
  border-left-color: #17a2b8;
}

#enhanced-tab .dimension-name {
  color: #17a2b8;
}

#enhanced-tab .dimension-percentile {
  color: #17a2b8;
}

#enhanced-tab .dimension-bar {
  background: linear-gradient(90deg, #17a2b8, #138496) !important;
}

#metatraits-tab .personality-insight-item {
  border-left-color: #6c5ce7;
}

#metatraits-tab .personality-header h3 {
  color: #6c5ce7;
}

#metatraits-tab .personality-score {
  background-color: #efedfb;
  color: #6c5ce7;
}

#metatraits-tab .meta-trait-card {
  border-left-color: #6c5ce7;
}

#metatraits-tab .meta-trait-name {
  color: #6c5ce7;
}

#metatraits-tab .meta-trait-percentile {
  color: #6c5ce7;
}

#metatraits-tab .meta-trait-bar {
  background: linear-gradient(90deg, #6c5ce7, #5849d4) !important;
}

/* Core Personality Dynamics - Trait Cards */
.traits-container {
  margin-bottom: 20px;
}

.trait-card {
  border-radius: 8px;
  padding: 15px 20px;
  background: white;
  border: 1px solid #e9ecef;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.trait-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.trait-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.trait-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0073e6;
  margin: 0;
}

.trait-percentile {
  background: #e6f3ff;
  color: #0073e6;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.trait-bar-container {
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  margin-bottom: 10px;
  overflow: hidden;
}

.trait-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #0073e6, #64a8ff);
}

.trait-description {
  color: #495057;
  font-size: 0.9rem;
  margin: 10px 0 0;
  line-height: 1.5;
}

/* Trait Interactions */
.trait-interactions-container {
  margin-top: 25px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
}

.trait-interactions-title {
  font-size: 1.2rem;
  color: #0073e6;
  margin: 0 0 15px 0;
}

.trait-interactions-content {
  color: #495057;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* MBTI Display for Psychological Insights */
.mbti-display {
  margin-bottom: 25px;
  padding: 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f6f9fc, #e6f3ff);
  text-align: center;
  border: 1px solid #d1e3f8;
}

.mbti-title {
  font-size: 1.2rem;
  color: #0073e6;
  margin: 0 0 5px;
}

.mbti-type {
  font-size: 2rem;
  font-weight: 700;
  color: #0073e6;
  margin: 10px 0;
  letter-spacing: 2px;
}

.mbti-confidence {
  font-size: 0.9rem;
  color: #495057;
  margin-bottom: 15px;
}

.cognitive-functions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.cognitive-function {
  padding: 5px 15px;
  background: white;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #0073e6;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* ===== NEW Psychological Insights Sections (MBTI/Enneagram Full Content) ===== */
.psych-insight-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.psych-insight-section.mbti-section {
  border-left: 5px solid #0073e6;
  background: linear-gradient(135deg, #f6f9fc 0%, #fff 100%);
}

.psych-insight-section.enneagram-section {
  border-left: 5px solid #6f42c1;
  background: linear-gradient(135deg, #f8f6fc 0%, #fff 100%);
}

.psych-insight-header {
  margin-bottom: 16px;
}

.psych-insight-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 10px 0;
}

.mbti-header .psych-insight-title {
  color: #0073e6;
}

.enneagram-header .psych-insight-title {
  color: #6f42c1;
}

.psych-insight-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: #495057;
  margin: 0;
}

/* Additional Insights Section (Core Contradiction, Hidden Driver, etc.) */
.additional-insights-container {
  margin-top: 30px;
}

.additional-insights-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}

.additional-insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.psych-insight-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #fd7e14;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.psych-insight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.insight-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 10px 0;
}

.insight-card-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #495057;
  margin: 0;
}

/* Different border colors for different insight types */
.psych-insight-card:nth-child(1) {
  border-left-color: #fd7e14;
  /* Orange - Core Contradiction */
}

.psych-insight-card:nth-child(2) {
  border-left-color: #0d6efd;
  /* Blue - Hidden Driver */
}

.psych-insight-card:nth-child(3) {
  border-left-color: #198754;
  /* Green - Self-Perception Gap */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .psych-insight-section {
    padding: 18px;
  }

  .additional-insights-grid {
    grid-template-columns: 1fr;
  }

  .psych-insight-card {
    padding: 16px;
  }
}

/* results-display.css - Part 4: Growth Pathways & Responsive Design */

/* ===== Growth Pathways Styling ===== */
/* ===== Growth Strategies ===== */
.growth-strategies {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.growth-strategy {
  background: white;
  border-radius: 10px;
  padding: 25px;
  border-left: 5px solid #fd7e14;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.growth-strategy:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.strategy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.strategy-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.strategy-difficulty {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: capitalize;
}

.strategy-difficulty.approachable {
  background-color: #d4edda;
  color: #155724;
}

.strategy-difficulty.moderate {
  background-color: #fff3cd;
  color: #856404;
}

.strategy-difficulty.challenging {
  background-color: #f8d7da;
  color: #721c24;
}

/* Strategy content with proper styling for implementation steps */
.strategy-content {
  color: #495057;
  font-size: 1rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.strategy-description {
  margin: 0;
}

/* Implementation steps section */
.implementation-steps {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-top: 5px;
}

.implementation-title {
  font-weight: 600;
  color: #495057;
  margin: 0 0 10px 0;
  font-size: 1rem;
}

.implementation-list {
  margin: 0;
  padding-left: 5px;
  list-style-type: none;
}

.implementation-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.implementation-list li::before {
  content: "•";
  position: absolute;
  left: 5px;
  color: #fd7e14;
  font-size: 18px;
  line-height: 1;
}

/* ===== New Strategy Sections (Root Cause, This Week, etc.) ===== */
.strategy-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px 18px;
  margin-bottom: 12px;
  border-left: 4px solid #6c757d;
}

.strategy-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.strategy-section p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #495057;
}

/* Color-coded section borders for visual distinction */
.strategy-root-cause {
  border-left-color: #6f42c1;
  /* Purple - dig deep */
  background: linear-gradient(135deg, #f8f6fc 0%, #f8f9fa 100%);
}

.strategy-this-week {
  border-left-color: #0d6efd;
  /* Blue - action */
  background: linear-gradient(135deg, #f0f7ff 0%, #f8f9fa 100%);
}

.strategy-uncomfortable {
  border-left-color: #dc3545;
  /* Red - warning/discomfort */
  background: linear-gradient(135deg, #fff5f5 0%, #f8f9fa 100%);
}

.strategy-payoff {
  border-left-color: #198754;
  /* Green - reward */
  background: linear-gradient(135deg, #f0fdf4 0%, #f8f9fa 100%);
}

/* Mobile responsiveness for strategy sections */
@media (max-width: 768px) {
  .strategy-section {
    padding: 12px 14px;
  }

  .strategy-section-title {
    font-size: 0.85rem;
  }

  .strategy-section p {
    font-size: 0.9rem;
  }
}

/* ===== Effort Level Sections ===== */
.effort-level-section {
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e9ecef;
}

.effort-level-header {
  margin-bottom: 20px;
}

.effort-level-header h4 {
  color: #333;
  margin: 0 0 10px 0;
  font-size: 1.2rem;
}

.level-description {
  font-size: 0.9rem;
  color: #6c757d;
}

.level-careers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Premium Header - White text on blue background for best contrast */
.premium-header {
  background-color: #0073e6;
  padding: 35px 25px;
  text-align: center;
}

.premium-header h2 {
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.premium-header p {
  color: #ffffff;
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
  font-weight: 400;
}

/* Premium Options Section */
.premium-options {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .premium-options {
    flex-direction: row;
    justify-content: center;
  }

  .premium-option {
    flex: 1;
    max-width: 500px;
  }
}

.premium-option {
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #d1d9e6;
  background: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.premium-option:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.premium-option.comprehensive-option {
  border-top: 5px solid #0073e6;
}

.premium-option.career-option {
  border-top: 5px solid #28a745;
}

.option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #eaeff5;
  padding-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.option-header h4 {
  margin: 0;
  font-size: 1.4rem;
  color: #1a1a1a;
  font-weight: 600;
}

.price-tag {
  background: #e1efff;
  color: #0057b8;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1rem;
}

.premium-option.career-option .price-tag {
  background: #d4f2db;
  color: #1e7e34;
}

.benefits-list {
  margin: 0;
  padding-left: 5px;
  list-style-type: none;
}

.benefits-list li {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #2c3e50;
  line-height: 1.6;
  position: relative;
  padding-left: 28px;
}

.benefits-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0073e6;
  font-weight: bold;
}

.premium-option.career-option .benefits-list li:before {
  color: #28a745;
}

.benefits-list li strong {
  color: #1a1a1a;
  font-weight: 600;
}

.premium-footer {
  text-align: center;
  padding: 20px 30px 30px;
  color: #2c3e50;
  font-size: 1.05rem;
  line-height: 1.7;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.premium-footer p strong {
  color: #0057b8;
  font-weight: 700;
}

/* Very small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .mbti-type {
    font-size: 1.5rem;
  }

  .cognitive-function {
    width: 100%;
    text-align: center;
  }

  .phase-title h4 {
    font-size: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .phase-duration {
    margin-left: 0;
    margin-top: 5px;
  }

  /* Tighter spacing for small screens */
  .career-item,
  .avoid-item,
  .personality-insight-item,
  .trait-card,
  .growth-strategy,
  .work-style-category,
  .skill-card {
    padding: 15px;
  }

  .phase-content {
    padding: 15px;
  }

  /* Keep implementation steps readable on small screens */
  .implementation-steps {
    padding: 12px;
  }

  .implementation-list li {
    padding-left: 20px;
  }

  .implementation-list li::before {
    left: 0;
  }
}

/* ===== Print Styles - Updated for compatibility ===== */
@media print {
  .results-container {
    box-shadow: none;
    padding: 0;
  }

  .action-buttons,
  .premium-pitch,
  button {
    display: none !important;
  }

  .tab-content {
    padding: 0;
  }

  .tab-panel {
    display: block !important;
    page-break-after: always;
    break-after: always;
  }

  .tab-panel:last-child {
    page-break-after: avoid;
    break-after: avoid;
  }


  .careers-list,
  .avoid-list,
  .work-style-viz,
  .dev-categories,
  .personality-insights-list,
  .level-careers {
    display: block;
  }

  .career-item,
  .avoid-item,
  .work-style-category,
  .personality-insight-item,
  .growth-strategy,
  .dev-category-item,
  .trait-card {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 20px;
  }

  .skills-table {
    width: 100%;
    border-collapse: collapse;
    page-break-inside: avoid;
    break-inside: avoid;
    display: table;
  }

  .skills-cards {
    display: none;
  }

  .skills-table th {
    background-color: #f8f9fa !important;
    print-color-adjust: exact;
  }

  .timeline-phases::before {
    display: none;
  }

  .phase-number {
    border: 1px solid #0073e6;
    background-color: white !important;
    color: #0073e6 !important;
    print-color-adjust: exact;
  }
}


/* Social Sharing Component Styling */
.social-share-container {
  margin: 30px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md, 8px);
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.social-share-container .share-prompt {
  margin-bottom: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

.social-share-container .share-prompt i {
  color: #7cc4ff;
  margin-right: 5px;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.share-link {
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md, 4px);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  min-width: 120px;
  justify-content: center;
  text-decoration: none;
}

.share-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: white;
  text-decoration: none;
}

.share-link:active {
  transform: translateY(0);
}

.share-link.twitter {
  background: rgba(29, 161, 242, 0.15);
  border-color: rgba(29, 161, 242, 0.3);
}

.share-link.twitter:hover {
  background: rgba(29, 161, 242, 0.25);
}

.share-link.facebook {
  background: rgba(66, 103, 178, 0.15);
  border-color: rgba(66, 103, 178, 0.3);
}

.share-link.facebook:hover {
  background: rgba(66, 103, 178, 0.25);
}

.share-link.linkedin {
  background: rgba(0, 119, 181, 0.15);
  border-color: rgba(0, 119, 181, 0.3);
}

.share-link.linkedin:hover {
  background: rgba(0, 119, 181, 0.25);
}

.share-link i {
  font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .social-buttons {
    flex-direction: column;
    width: 100%;
  }

  .share-link {
    width: 100%;
  }
}

/* Print styles - hide share component when printing */
@media print {
  .social-share-container {
    display: none !important;
  }
}

/* Add to results-display.css */

/* Content category headers */
.content-category-header {
  color: var(--primary, #0073e6);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 25px 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-medium, #e9ecef);
  position: relative;
}


/* --- Color Coded Navigation Buttons --- */

/* --- Career Test --- */
.tab-nav-btn[data-target-tab="careers"] {
  background: #0073e6;
}

.tab-nav-btn[data-target-tab="careers"]:hover {
  background: #005bb5;
}

.tab-nav-btn[data-target-tab="avoid"] {
  background: #dc3545;
}

.tab-nav-btn[data-target-tab="avoid"]:hover {
  background: #c82333;
}

.tab-nav-btn[data-target-tab="operating"] {
  background: #17a2b8;
}

.tab-nav-btn[data-target-tab="operating"]:hover {
  background: #138496;
}

.tab-nav-btn[data-target-tab="accelerators"] {
  background: #28a745;
}

.tab-nav-btn[data-target-tab="accelerators"]:hover {
  background: #218838;
}

.tab-nav-btn[data-target-tab="frontier"] {
  background: #ffc107;
  color: #212529;
}

.tab-nav-btn[data-target-tab="frontier"]:hover {
  background: #e0a800;
  color: #212529;
}

.tab-nav-btn[data-target-tab="transition"] {
  background: #6c757d;
}

.tab-nav-btn[data-target-tab="transition"]:hover {
  background: #5a6268;
}


/* --- Comprehensive Test --- */
.tab-nav-btn[data-target-tab="dynamics"] {
  background: #0073e6;
}

.tab-nav-btn[data-target-tab="dynamics"]:hover {
  background: #005bb5;
}

.tab-nav-btn[data-target-tab="insights"] {
  background: #28a745;
}

.tab-nav-btn[data-target-tab="insights"]:hover {
  background: #218838;
}

.tab-nav-btn[data-target-tab="patterns"] {
  background: #6c5ce7;
}

.tab-nav-btn[data-target-tab="patterns"]:hover {
  background: #5849d4;
}

.tab-nav-btn[data-target-tab="pathways"] {
  background: #fd7e14;
}

.tab-nav-btn[data-target-tab="pathways"]:hover {
  background: #e66a00;
}

.tab-nav-btn[data-target-tab="enhanced"] {
  background: #17a2b8;
}

.tab-nav-btn[data-target-tab="enhanced"]:hover {
  background: #138496;
}

.tab-nav-btn[data-target-tab="metatraits"] {
  background: #6c5ce7;
}

.tab-nav-btn[data-target-tab="metatraits"]:hover {
  background: #5849d4;
}

/* ===== IFS Tab Navigation Footer ===== */
.ifs-tab-navigation-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 2px solid #f1f5f9;
}

.ifs-tab-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #5b9bff, #2a6f9e);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(91, 155, 255, 0.3);
}

.ifs-tab-nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(91, 155, 255, 0.4);
  background: linear-gradient(135deg, #5a6fd8, #6b4c9a);
}

.ifs-tab-nav-btn:disabled {
  background: #e2e8f0;
  color: #a0aec0;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


.ifs-tab-nav-spacer {
  flex: 1;
}

/* Mobile responsive for IFS navigation */
@media (max-width: 768px) {
  .ifs-tab-navigation-footer {
    flex-direction: column;
    gap: 15px;
  }

  .ifs-tab-nav-btn {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
    font-size: 1rem;
  }

  .ifs-tab-nav-spacer {
    display: none;
  }
}

/* --- IFS Test --- */
.ifs-tab-nav-btn[data-target-tab="selfLeadership"] {
  background: linear-gradient(135deg, #5b9bff, #2a6f9e);
}

.ifs-tab-nav-btn[data-target-tab="selfLeadership"]:hover {
  background: linear-gradient(135deg, #5a6fd8, #6b4c9a);
}

.ifs-tab-nav-btn[data-target-tab="managerParts"] {
  background: linear-gradient(135deg, #10b981, #059669);
}

.ifs-tab-nav-btn[data-target-tab="managerParts"]:hover {
  background: linear-gradient(135deg, #0f9b6e, #047857);
}

.ifs-tab-nav-btn[data-target-tab="firefighterParts"] {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.ifs-tab-nav-btn[data-target-tab="firefighterParts"]:hover {
  background: linear-gradient(135deg, #e4940a, #c86c05);
}

.ifs-tab-nav-btn[data-target-tab="exileParts"] {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.ifs-tab-nav-btn[data-target-tab="exileParts"]:hover {
  background: linear-gradient(135deg, #e53e3e, #c52020);
}

.ifs-tab-nav-btn[data-target-tab="partsRelationships"] {
  background: linear-gradient(135deg, #3f9bff, #4f46e5);
}

.ifs-tab-nav-btn[data-target-tab="partsRelationships"]:hover {
  background: linear-gradient(135deg, #5558e6, #3730a3);
}

.ifs-tab-nav-btn[data-target-tab="developmentPath"] {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.ifs-tab-nav-btn[data-target-tab="developmentPath"]:hover {
  background: linear-gradient(135deg, #05a5c2, #0781a1);
}

/* ===== Tab Navigation Buttons ===== */
.tab-navigation-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-medium);
}

.tab-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.tab-nav-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 115, 230, 0.3);
}

.tab-nav-btn:disabled {
  background: var(--gray-medium);
  color: var(--text-light);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


.tab-nav-spacer {
  flex: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .tab-navigation-footer {
    flex-direction: column;
    gap: 15px;
  }

  .tab-nav-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }

  .tab-nav-spacer {
    display: none;
  }
}


/* Adjust paragraph spacing when we have category headers */
.content-category-header+p {
  margin-top: 10px;
}

/* Remove bullet points when we have category headers */

/* Keep bullet points for all paragraphs - this overrides the previous removal */
.section-content p {
  padding-left: 15px;
  position: relative;
}

.section-content p:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary, #0073e6);
  font-weight: bold;
}


/* Upgrade suggestions */
.upgrade-suggestion {
  background: linear-gradient(135deg, #f8f9ff 0%, #e6f3ff 100%);
  border-left: 4px solid #0073e6;
  border-radius: 8px;
  margin: 20px 0;
  padding: 20px;
  transition: all 0.3s ease;
}

.upgrade-suggestion:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 115, 230, 0.1);
}

.upgrade-content h4 {
  color: #0057b8;
  font-size: 1.1rem;
  margin: 0 0 10px 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.upgrade-content h4 i {
  color: #0073e6;
  font-size: 1rem;
}

.upgrade-content p {
  color: #495057;
  margin: 0 0 15px 0;
  line-height: 1.5;
  font-size: 0.95rem;
}

.upgrade-link {
  background: #0073e6;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
  transition: all 0.3s ease;
}

.upgrade-link:hover {
  background: #0057b8;
  transform: translateY(-1px);
  color: white;
  text-decoration: none;
}

/* Hide upgrade suggestions when printing */
@media print {
  .upgrade-suggestion {
    display: none !important;
  }
}


/* Add bullet points for paragraphs under category headers */
.content-category-header+p,
.content-category-header~p {
  position: relative;
  padding-left: 20px;
}

.content-category-header+p:before,
.content-category-header~p:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary, #0073e6);
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1;
  top: 0;
}

/* Different bullet colors for different sections */
/* Category headers styling */
.content-category-header {
  color: var(--primary, #0073e6);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 25px 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-medium, #e9ecef);
}


/* =============================================================
   DARK GLASSMORPHISM THEME
   Scoped to body.dark-results
   ============================================================= */

/* --- Main Container --- */
body.dark-results .results-container {
  background: rgba(22, 27, 34, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.85);
}

/* --- Header & Titles --- */
body.dark-results .results-header h2 {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 0 30px rgba(91, 155, 255, 0.3);
}

body.dark-results .results-subtitle {
  color: rgba(255, 255, 255, 0.55);
}

body.dark-results .panel-title {
  color: rgba(255, 255, 255, 0.95);
}

body.dark-results .panel-intro {
  color: rgba(255, 255, 255, 0.65);
}

body.dark-results .section-title,
body.dark-results .content-category-header {
  color: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-results h3,
body.dark-results h4 {
  color: rgba(255, 255, 255, 0.92);
}

/* --- Tab Navigation (Pills) --- */
body.dark-results .ifs-tab-navigation {
  background: transparent;
}

body.dark-results .ifs-tab-navigation .ifs-tab-button,
body.dark-results .tabs-navigation .tab-button {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}

body.dark-results .ifs-tab-navigation .ifs-tab-button:hover,
body.dark-results .tabs-navigation .tab-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

body.dark-results .ifs-tab-navigation .ifs-tab-button.active,
body.dark-results .tabs-navigation .tab-button.active {
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* IFS tab active colors — keep the fills, add glow */
body.dark-results .ifs-tab-navigation .ifs-tab-button[data-tab="selfLeadership"].active {
  box-shadow: 0 4px 20px rgba(91, 155, 255, 0.4);
}
body.dark-results .ifs-tab-navigation .ifs-tab-button[data-tab="managerParts"].active {
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}
body.dark-results .ifs-tab-navigation .ifs-tab-button[data-tab="firefighterParts"].active {
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}
body.dark-results .ifs-tab-navigation .ifs-tab-button[data-tab="exileParts"].active {
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}
body.dark-results .ifs-tab-navigation .ifs-tab-button[data-tab="partsRelationships"].active {
  box-shadow: 0 4px 20px rgba(74, 168, 255, 0.4);
}
body.dark-results .ifs-tab-navigation .ifs-tab-button[data-tab="developmentPath"].active {
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
}

/* Career/Comprehensive tab active colors with glow */
body.dark-results .tabs-navigation .tab-button[data-tab="careers"].active {
  box-shadow: 0 4px 20px rgba(0, 115, 230, 0.4);
}
body.dark-results .tabs-navigation .tab-button[data-tab="avoid"].active {
  box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
}
body.dark-results .tabs-navigation .tab-button[data-tab="operating"].active {
  box-shadow: 0 4px 20px rgba(23, 162, 184, 0.4);
}
body.dark-results .tabs-navigation .tab-button[data-tab="skills"].active {
  box-shadow: 0 4px 20px rgba(40, 167, 69, 0.4);
}
body.dark-results .tabs-navigation .tab-button[data-tab="development"].active {
  box-shadow: 0 4px 20px rgba(255, 193, 7, 0.4);
}
body.dark-results .tabs-navigation .tab-button[data-tab="roadmap"].active {
  box-shadow: 0 4px 20px rgba(111, 66, 193, 0.4);
}

/* Comprehensive tab active glow */
body.dark-results .tabs-navigation .tab-button[data-tab="traits"].active {
  box-shadow: 0 4px 20px rgba(0, 115, 230, 0.4);
}
body.dark-results .tabs-navigation .tab-button[data-tab="dimensions"].active {
  box-shadow: 0 4px 20px rgba(23, 162, 184, 0.4);
}
body.dark-results .tabs-navigation .tab-button[data-tab="metaTraits"].active {
  box-shadow: 0 4px 20px rgba(111, 66, 193, 0.4);
}
body.dark-results .tabs-navigation .tab-button[data-tab="insights"].active {
  box-shadow: 0 4px 20px rgba(253, 126, 20, 0.4);
}
body.dark-results .tabs-navigation .tab-button[data-tab="growth"].active {
  box-shadow: 0 4px 20px rgba(40, 167, 69, 0.4);
}

/* --- Card Types (Universal Dark Style) --- */
body.dark-results .career-item,
body.dark-results .avoid-item,
body.dark-results .skill-card,
body.dark-results .work-style-category,
body.dark-results .trait-card,
body.dark-results .dimension-card,
body.dark-results .meta-trait-card,
body.dark-results .personality-insight-item,
body.dark-results .growth-strategy,
body.dark-results .dev-category-item,
body.dark-results .timeline-phase,
body.dark-results .frontier-card,
body.dark-results .ifs-insight-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

body.dark-results .career-item:hover,
body.dark-results .avoid-item:hover,
body.dark-results .skill-card:hover,
body.dark-results .work-style-category:hover,
body.dark-results .trait-card:hover,
body.dark-results .dimension-card:hover,
body.dark-results .meta-trait-card:hover,
body.dark-results .personality-insight-item:hover,
body.dark-results .growth-strategy:hover,
body.dark-results .dev-category-item:hover,
body.dark-results .timeline-phase:hover,
body.dark-results .frontier-card:hover,
body.dark-results .ifs-insight-card:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Keep colored left borders but slightly lighten */
body.dark-results .avoid-item {
  background: rgba(220, 53, 69, 0.08);
  border-left-color: rgba(220, 53, 69, 0.7);
}

body.dark-results .growth-strategy {
  border-left-color: rgba(253, 126, 20, 0.7);
}

/* --- Text Colors Inside Cards --- */
body.dark-results .career-header h3,
body.dark-results .career-title,
body.dark-results .skill-name,
body.dark-results .trait-name,
body.dark-results .dimension-name,
body.dark-results .category-title {
  color: rgba(255, 255, 255, 0.95);
}

body.dark-results .career-description,
body.dark-results .career-reasoning,
body.dark-results .skill-description,
body.dark-results .trait-description,
body.dark-results .dimension-description,
body.dark-results .category-description,
body.dark-results .growth-description,
body.dark-results .insight-text,
body.dark-results .timeline-description,
body.dark-results .dev-description,
body.dark-results p,
body.dark-results li {
  color: rgba(255, 255, 255, 0.75);
}

body.dark-results strong,
body.dark-results b {
  color: rgba(255, 255, 255, 0.9);
}

/* --- Score Badges & Metrics --- */
body.dark-results .match-badge,
body.dark-results .score-badge,
body.dark-results .match-score,
body.dark-results .percentile-badge,
body.dark-results .percentile-label {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark-results .salary-range {
  color: rgba(91, 155, 255, 0.9);
}

body.dark-results .career-metrics {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Progress/Trait Bars --- */
body.dark-results .trait-bar-container {
  background: rgba(255, 255, 255, 0.08);
}

body.dark-results .trait-bar {
  box-shadow: 0 0 8px rgba(0, 115, 230, 0.3);
}

/* Work style bars */
body.dark-results .work-style-bar-bg,
body.dark-results .skill-bar-bg {
  background: rgba(255, 255, 255, 0.08);
}

body.dark-results .bar-label,
body.dark-results .bar-value {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Analysis Sections (MBTI, Enneagram, etc.) --- */
body.dark-results .analysis-section,
body.dark-results .analysis-content,
body.dark-results .enneagram-section,
body.dark-results .mbti-section,
body.dark-results .psychological-analysis {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
}

body.dark-results .analysis-section h3,
body.dark-results .analysis-section h4,
body.dark-results .analysis-content h3,
body.dark-results .analysis-content h4 {
  color: rgba(255, 255, 255, 0.95);
}

/* Section variants with colored left borders */
body.dark-results .section-mbti {
  border-left-color: rgba(91, 155, 255, 0.6);
  background: rgba(91, 155, 255, 0.06);
}

body.dark-results .section-enneagram {
  border-left-color: rgba(74, 168, 255, 0.6);
  background: rgba(74, 168, 255, 0.06);
}

body.dark-results .section-contradiction {
  border-left-color: rgba(253, 126, 20, 0.6);
  background: rgba(253, 126, 20, 0.06);
}

body.dark-results .section-perception {
  border-left-color: rgba(16, 185, 129, 0.6);
  background: rgba(16, 185, 129, 0.06);
}

/* --- Info Boxes & Callouts --- */
body.dark-results .info-box,
body.dark-results .warning-box,
body.dark-results .tip-box {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

/* --- Trait Interaction Cards --- */
body.dark-results .trait-interactions-container,
body.dark-results .trait-interaction-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}

/* --- Meta Trait Gradient Cards (override light gradients) --- */
body.dark-results .meta-trait-card.stability-plasticity {
  background: linear-gradient(135deg, rgba(91, 155, 255, 0.12) 0%, rgba(14, 17, 22, 0.5) 100%);
}

body.dark-results .meta-trait-card.alpha-beta {
  background: linear-gradient(135deg, rgba(74, 168, 255, 0.12) 0%, rgba(14, 17, 22, 0.5) 100%);
}

body.dark-results .meta-trait-card.general-factor {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(14, 17, 22, 0.5) 100%);
}

body.dark-results .meta-trait-card.social-adaptability {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(14, 17, 22, 0.5) 100%);
}

/* --- Type Badge / Labels --- */
body.dark-results .type-badge,
body.dark-results .trait-label,
body.dark-results .category-tag {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.12);
}

/* --- Dimension Spectrum --- */
body.dark-results .dimension-spectrum,
body.dark-results .spectrum-container {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-results .spectrum-label {
  color: rgba(255, 255, 255, 0.6);
}

/* --- Growth Strategy Steps --- */
body.dark-results .strategy-step,
body.dark-results .action-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}

body.dark-results .step-number {
  background: rgba(91, 155, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
}

/* --- Timeline Phases --- */
body.dark-results .timeline-phase::before {
  background: rgba(91, 155, 255, 0.6);
}

body.dark-results .phase-header {
  color: rgba(255, 255, 255, 0.95);
}

body.dark-results .phase-duration {
  color: rgba(255, 255, 255, 0.5);
}

/* --- Links --- */
body.dark-results a {
  color: rgba(91, 155, 255, 0.9);
}

body.dark-results a:hover {
  color: rgba(132, 156, 255, 1);
}

/* --- Horizontal Rules / Dividers --- */
body.dark-results hr {
  border-color: rgba(255, 255, 255, 0.08);
}

/* --- Lists (bullet points) --- */
body.dark-results .content-category-header + p:before,
body.dark-results .content-category-header ~ p:before {
  color: rgba(91, 155, 255, 0.8);
}

/* --- IFS Specific Panel Content --- */
body.dark-results .ifs-panel-content {
  color: rgba(255, 255, 255, 0.85);
}

body.dark-results .part-card,
body.dark-results .relationship-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}

body.dark-results .part-card:hover,
body.dark-results .relationship-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* --- Miscellaneous Overrides --- */
body.dark-results .panel-content {
  color: rgba(255, 255, 255, 0.85);
}

body.dark-results .ifs-tab-panel {
  color: rgba(255, 255, 255, 0.85);
}

/* --- Panels & Containers with white backgrounds --- */
body.dark-results .personality-panel,
body.dark-results .ifs-results-container,
body.dark-results .simplified-timeline,
body.dark-results .phase-content {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
}

/* --- Cognitive Function, Psych Insight Cards --- */
body.dark-results .cognitive-function,
body.dark-results .psych-insight-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

body.dark-results .cognitive-function:hover,
body.dark-results .psych-insight-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* --- Percentile, Bar Containers, Notes --- */
body.dark-results .trait-percentile,
body.dark-results .dimension-bar-container,
body.dark-results .meta-trait-bar-container {
  background: rgba(255, 255, 255, 0.08);
}

body.dark-results .research-note,
body.dark-results .meta-trait-meaning,
body.dark-results .hierarchy-note,
body.dark-results .explanation-note,
body.dark-results .learning-note {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

/* --- Table Headers --- */
body.dark-results th {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-results td {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.06);
}

body.dark-results table {
  border-color: rgba(255, 255, 255, 0.06);
}

/* --- Restart / Action Buttons --- */
body.dark-results .restart-button {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark-results .restart-button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

/* --- Nav inside header --- */
body.dark-results nav {
  background: transparent;
}

/* --- Psych Insight Header --- */
body.dark-results .psych-insight-header h3 {
  color: rgba(255, 255, 255, 0.95);
}

body.dark-results .psych-insight-header .insight-type-badge {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

/* --- Cognitive Function Text --- */
body.dark-results .function-name {
  color: rgba(255, 255, 255, 0.95);
}

body.dark-results .function-description {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Dimension spectrum labels & bars --- */
body.dark-results .dimension-low-label,
body.dark-results .dimension-high-label {
  color: rgba(255, 255, 255, 0.55);
}

/* --- Additional insights container --- */
body.dark-results .additional-insights-container {
  color: rgba(255, 255, 255, 0.85);
}

body.dark-results .additional-insight-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}

/* --- Quick Alternatives Cards --- */
body.dark-results .quick-alt-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-results .quick-alt-card:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-results .alt-title {
  color: rgba(102, 178, 255, 0.95);
}

body.dark-results .alt-salary {
  color: rgba(91, 155, 255, 0.85);
}

body.dark-results .alt-reason {
  color: rgba(255, 255, 255, 0.6);
}

body.dark-results .alt-header h4 {
  color: rgba(255, 255, 255, 0.9);
}

body.dark-results .alt-subtitle {
  color: rgba(255, 255, 255, 0.55);
}

body.dark-results .quick-alternatives-section {
  border-top-color: rgba(255, 255, 255, 0.08);
}

body.dark-results .quick-alternatives-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}

/* --- Effort Tags & Salary Status Badges --- */
body.dark-results .effort-tag.quick-win {
  background-color: rgba(40, 167, 69, 0.15);
  color: #6ee7b7;
}

body.dark-results .effort-tag.moderate {
  background-color: rgba(0, 115, 230, 0.15);
  color: #93c5fd;
}

body.dark-results .effort-tag.high-investment {
  background-color: rgba(253, 126, 20, 0.15);
  color: #fdba74;
}

body.dark-results .salary-status.meets {
  background-color: rgba(40, 167, 69, 0.15);
  color: #6ee7b7;
}

body.dark-results .salary-status.with-experience {
  background-color: rgba(253, 126, 20, 0.15);
  color: #fdba74;
}

body.dark-results .salary-status.does-not-meet {
  background-color: rgba(220, 53, 69, 0.15);
  color: #fca5a5;
}

/* --- Tab Footer Navigation --- */
body.dark-results .tab-navigation-footer,
body.dark-results .ifs-tab-navigation-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

body.dark-results .tab-nav-btn {
  background: linear-gradient(135deg, #5b9bff 0%, #2a6f9e 100%);
  box-shadow: 0 4px 15px rgba(91, 155, 255, 0.3);
}

body.dark-results .tab-nav-btn:hover {
  box-shadow: 0 6px 20px rgba(91, 155, 255, 0.5);
}

body.dark-results .tab-nav-btn:disabled {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

/* --- Action Buttons (Save PDF, Take Another) --- */
body.dark-results .action-buttons button {
  backdrop-filter: blur(8px);
}

body.dark-results .restart-button {
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body.dark-results .restart-button:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: white !important;
}

/* --- Green Text Readability on Dark (lighten greens) --- */
body.dark-results #insights-tab .personality-header h3 {
  color: #6ee7b7;
}

body.dark-results #insights-tab .personality-score {
  background-color: rgba(40, 167, 69, 0.15);
  color: #6ee7b7;
}

body.dark-results #dynamics-tab .personality-score {
  background-color: rgba(0, 115, 230, 0.15);
  color: #93c5fd;
}

body.dark-results #patterns-tab .personality-header h3 {
  color: #7cc4ff;
}

body.dark-results #patterns-tab .personality-score {
  background-color: rgba(108, 92, 231, 0.15);
  color: #7cc4ff;
}

/* --- Personality Score badges general --- */
body.dark-results .personality-score {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}

/* --- Saved Report Banner --- */
body.dark-results .saved-banner,
body.dark-results .report-saved-banner {
  background: rgba(40, 167, 69, 0.15);
  border-color: rgba(40, 167, 69, 0.3);
  color: #6ee7b7;
}

/* --- Strategy Sections (Root Cause, This Week, Uncomfortable, Payoff) --- */
body.dark-results .strategy-section {
  background: rgba(255, 255, 255, 0.04);
  border-left-width: 4px;
}

body.dark-results .strategy-section-title {
  color: rgba(255, 255, 255, 0.9);
}

body.dark-results .strategy-section p {
  color: rgba(255, 255, 255, 0.75);
}

body.dark-results .strategy-root-cause {
  border-left-color: #7cc4ff;
  background: rgba(111, 66, 193, 0.1);
}

body.dark-results .strategy-this-week {
  border-left-color: #60a5fa;
  background: rgba(13, 110, 253, 0.1);
}

body.dark-results .strategy-uncomfortable {
  border-left-color: #f87171;
  background: rgba(220, 53, 69, 0.1);
}

body.dark-results .strategy-payoff {
  border-left-color: #34d399;
  background: rgba(25, 135, 84, 0.1);
}

/* --- Implementation Lists --- */
body.dark-results .implementation-list li {
  color: rgba(255, 255, 255, 0.75);
}

body.dark-results .implementation-list li::before {
  color: #fdba74;
}

/* =============================================================
   PREMIUM VISUAL UPGRADES
   ============================================================= */

/* --- @property for CSS counter animation --- */
@property --num {
  syntax: '<integer>';
  initial-value: 0;
  inherits: false;
}

/* --- Keyframes --- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes barFill {
  from { width: 0; }
}

@keyframes ambientFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(15px, -10px) scale(1.05); }
}

@keyframes ambientFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-12px, 8px) scale(1.03); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.7; }
}

/* --- 1. Richer Card Design --- */
body.dark-results .career-item,
body.dark-results .trait-card,
body.dark-results .dimension-card,
body.dark-results .meta-trait-card,
body.dark-results .personality-insight-item,
body.dark-results .growth-strategy,
body.dark-results .dev-category-item,
body.dark-results .timeline-phase,
body.dark-results .frontier-card,
body.dark-results .ifs-insight-card,
body.dark-results .skill-card,
body.dark-results .work-style-category,
body.dark-results .avoid-item,
body.dark-results .cognitive-function,
body.dark-results .psych-insight-card,
body.dark-results .quick-alt-card,
body.dark-results .next-step-card,
body.dark-results .additional-insight-card {
  border-radius: 16px;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-left: none;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, rgba(91, 155, 255, 0.6), rgba(74, 168, 255, 0.4)) 1;
  border-image-slice: 1 0 0 0;
}

body.dark-results .career-item:hover,
body.dark-results .trait-card:hover,
body.dark-results .dimension-card:hover,
body.dark-results .meta-trait-card:hover,
body.dark-results .personality-insight-item:hover,
body.dark-results .growth-strategy:hover,
body.dark-results .dev-category-item:hover,
body.dark-results .timeline-phase:hover,
body.dark-results .frontier-card:hover,
body.dark-results .ifs-insight-card:hover,
body.dark-results .skill-card:hover,
body.dark-results .work-style-category:hover,
body.dark-results .avoid-item:hover,
body.dark-results .cognitive-function:hover,
body.dark-results .psych-insight-card:hover,
body.dark-results .quick-alt-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Color-specific top borders for card types */
body.dark-results .avoid-item {
  border-image: linear-gradient(90deg, rgba(239, 68, 68, 0.7), rgba(220, 53, 69, 0.4)) 1;
  border-image-slice: 1 0 0 0;
  border-left: none;
}

body.dark-results .growth-strategy {
  border-image: linear-gradient(90deg, rgba(253, 126, 20, 0.7), rgba(245, 158, 11, 0.4)) 1;
  border-image-slice: 1 0 0 0;
  border-left: none;
}

body.dark-results .skill-card {
  border-image: linear-gradient(90deg, rgba(16, 185, 129, 0.6), rgba(6, 182, 212, 0.4)) 1;
  border-image-slice: 1 0 0 0;
}

body.dark-results .timeline-phase {
  border-image: linear-gradient(90deg, rgba(111, 66, 193, 0.6), rgba(91, 155, 255, 0.4)) 1;
  border-image-slice: 1 0 0 0;
}

/* IFS cards keep colored left borders (overriding top-border default) */
body.dark-results .selfLeadership-card,
body.dark-results .managerParts-card,
body.dark-results .firefighterParts-card,
body.dark-results .exileParts-card,
body.dark-results .partsRelationships-card,
body.dark-results .developmentPath-card {
  border-image: none;
  border-top: none;
  border-left: 4px solid;
  border-radius: 16px;
}

/* Percentile badges — color-coded by score range */
body.dark-results .percentile-badge,
body.dark-results .percentile-label {
  border-radius: 20px;
  padding: 4px 12px;
  font-weight: 600;
  font-size: 0.85rem;
}

body.dark-results .trait-card .trait-percentile {
  border-radius: 16px;
}

/* --- 2. Background Ambient Effects --- */
body.dark-results .results-container {
  position: relative;
  overflow: visible;
}

body.dark-results .results-container::before,
body.dark-results .results-container::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

body.dark-results .results-container::before {
  width: 500px;
  height: 500px;
  top: -100px;
  left: -150px;
  background: radial-gradient(circle, rgba(91, 155, 255, 0.08) 0%, transparent 70%);
  animation: ambientFloat 12s ease-in-out infinite;
}

body.dark-results .results-container::after {
  width: 400px;
  height: 400px;
  bottom: 100px;
  right: -120px;
  background: radial-gradient(circle, rgba(74, 168, 255, 0.06) 0%, transparent 70%);
  animation: ambientFloat2 15s ease-in-out infinite;
}

/* --- 3. Section Headers with Gradient Underlines --- */
body.dark-results .panel-title {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

body.dark-results .panel-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #5b9bff, #2a6f9e);
  border-radius: 3px;
}

body.dark-results .section-title::after,
body.dark-results .content-category-header::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 8px;
  background: linear-gradient(90deg, #5b9bff, transparent);
  border-radius: 2px;
}

body.dark-results .panel-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Section dividers */
body.dark-results .ifs-tab-panel + .ifs-tab-panel,
body.dark-results .panel-content > .section-title {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
}

/* --- 4. Scroll-triggered Fade-in Animations --- */
/* Hidden state is applied via JS (.scroll-hidden class) to avoid invisible cards
   when IntersectionObserver can't reach them (hidden tabs, etc.) */
body.dark-results .scroll-hidden {
  opacity: 0 !important;
  transform: translateY(24px) !important;
}

body.dark-results .scroll-visible {
  animation: fadeSlideUp 0.6s ease forwards;
}

/* Staggered delays for siblings */
body.dark-results .scroll-visible:nth-child(1) { animation-delay: 0s; }
body.dark-results .scroll-visible:nth-child(2) { animation-delay: 0.08s; }
body.dark-results .scroll-visible:nth-child(3) { animation-delay: 0.16s; }
body.dark-results .scroll-visible:nth-child(4) { animation-delay: 0.24s; }
body.dark-results .scroll-visible:nth-child(5) { animation-delay: 0.32s; }
body.dark-results .scroll-visible:nth-child(6) { animation-delay: 0.4s; }
body.dark-results .scroll-visible:nth-child(7) { animation-delay: 0.48s; }
body.dark-results .scroll-visible:nth-child(8) { animation-delay: 0.56s; }
body.dark-results .scroll-visible:nth-child(9) { animation-delay: 0.64s; }
body.dark-results .scroll-visible:nth-child(10) { animation-delay: 0.72s; }

/* --- 5. Animated Bar Fills --- */
body.dark-results .trait-bar,
body.dark-results .work-style-bar-fill,
body.dark-results .skill-bar-fill,
body.dark-results .dimension-bar-fill,
body.dark-results .meta-trait-bar-fill {
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-results .bar-animate {
  animation: barFill 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* --- 6. Hero Card for #1 Career Match --- */
body.dark-results .career-item:first-child {
  padding: 28px 24px;
  border-image: linear-gradient(90deg, #5b9bff, #2a6f9e, #5b9bff) 1;
  border-image-slice: 1 0 0 0;
  border-top-width: 4px;
  box-shadow:
    0 4px 20px rgba(91, 155, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
}

body.dark-results .career-item:first-child .career-title,
body.dark-results .career-item:first-child .career-header h3 {
  font-size: 1.3em;
  background: linear-gradient(90deg, #60a5fa, #7cc4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark-results .career-item:first-child .match-badge,
body.dark-results .career-item:first-child .match-score,
body.dark-results .career-item:first-child .score-badge {
  background: linear-gradient(135deg, rgba(91, 155, 255, 0.25), rgba(74, 168, 255, 0.25));
  border-color: rgba(91, 155, 255, 0.3);
  font-size: 1.05em;
}

body.dark-results .career-item:first-child:hover {
  box-shadow:
    0 16px 45px rgba(91, 155, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* --- 7. Tab Pills Upgrade --- */
body.dark-results .ifs-tab-navigation .ifs-tab-button,
body.dark-results .tabs-navigation .tab-button {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

body.dark-results .ifs-tab-navigation .ifs-tab-button.active::after,
body.dark-results .tabs-navigation .tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: white;
  border-radius: 3px;
  animation: glowPulse 2s ease-in-out infinite;
}

/* Colored pip before tab labels */
body.dark-results .ifs-tab-navigation .ifs-tab-button::before,
body.dark-results .tabs-navigation .tab-button::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.3s ease;
  flex-shrink: 0;
}

body.dark-results .ifs-tab-navigation .ifs-tab-button.active::before,
body.dark-results .tabs-navigation .tab-button.active::before {
  background: white;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

/* --- 8. Growth Strategy Timeline Feel --- */
body.dark-results .growth-strategies,
body.dark-results .strategies-container {
  position: relative;
  padding-left: 32px;
}

/* Vertical connecting line */
body.dark-results .growth-strategies::before,
body.dark-results .strategies-container::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #5b9bff, #2a6f9e, #34d399);
  border-radius: 2px;
  opacity: 0.5;
}

/* Timeline dots on each strategy */
body.dark-results .growth-strategy,
body.dark-results .strategy-section {
  position: relative;
  margin-left: 0;
}

body.dark-results .growth-strategy::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #5b9bff;
  border: 2px solid #2a3340;
  box-shadow: 0 0 8px rgba(91, 155, 255, 0.5);
  z-index: 1;
}

body.dark-results .growth-strategy:nth-child(2)::before {
  background: #7cc4ff;
  box-shadow: 0 0 8px rgba(74, 168, 255, 0.5);
}

body.dark-results .growth-strategy:nth-child(3)::before {
  background: #f87171;
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.5);
}

body.dark-results .growth-strategy:nth-child(4)::before {
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}

/* Strategy section timeline (ROOT CAUSE → THIS WEEK → UNCOMFORTABLE → PAYOFF) */
body.dark-results .strategy-root-cause,
body.dark-results .strategy-this-week,
body.dark-results .strategy-uncomfortable,
body.dark-results .strategy-payoff {
  position: relative;
  margin-left: 0;
  border-radius: 16px;
  border-left: 4px solid;
}

body.dark-results .strategy-root-cause::before,
body.dark-results .strategy-this-week::before,
body.dark-results .strategy-uncomfortable::before,
body.dark-results .strategy-payoff::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #2a3340;
  z-index: 1;
}

body.dark-results .strategy-root-cause::before {
  background: #7cc4ff;
  box-shadow: 0 0 8px rgba(124, 196, 255, 0.5);
}

body.dark-results .strategy-this-week::before {
  background: #60a5fa;
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}

body.dark-results .strategy-uncomfortable::before {
  background: #f87171;
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.5);
}

body.dark-results .strategy-payoff::before {
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}

/* =============================================================
   PSYCHOLOGICAL INSIGHTS TAB — Premium Upgrade
   ============================================================= */

/* --- MBTI & Enneagram Section Cards --- */
body.dark-results .psych-insight-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

/* Accent glow behind each section */
body.dark-results .psych-insight-section::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.5;
}

body.dark-results .mbti-section {
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #5b9bff, #60a5fa) 1;
  border-image-slice: 1 0 0 0;
}

body.dark-results .mbti-section::before {
  background: radial-gradient(circle, rgba(91, 155, 255, 0.1) 0%, transparent 70%);
}

body.dark-results .enneagram-section {
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #7cc4ff, #a5b4fc) 1;
  border-image-slice: 1 0 0 0;
}

body.dark-results .enneagram-section::before {
  background: radial-gradient(circle, rgba(74, 168, 255, 0.1) 0%, transparent 70%);
}

/* --- Type Title — Gradient Text for Impact --- */
body.dark-results .psych-insight-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

body.dark-results .mbti-section .psych-insight-title {
  background: linear-gradient(90deg, #60a5fa, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark-results .enneagram-section .psych-insight-title {
  background: linear-gradient(90deg, #7cc4ff, #c7d2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Cognitive Function Badges — Colorful Pills --- */
body.dark-results .cognitive-functions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

body.dark-results .cognitive-function {
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

body.dark-results .cognitive-function:nth-child(1) {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(96, 165, 250, 0.08));
  border-color: rgba(96, 165, 250, 0.3);
  color: #93c5fd;
}

body.dark-results .cognitive-function:nth-child(2) {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(52, 211, 153, 0.08));
  border-color: rgba(52, 211, 153, 0.3);
  color: #6ee7b7;
}

body.dark-results .cognitive-function:nth-child(3) {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.2), rgba(251, 146, 60, 0.08));
  border-color: rgba(251, 146, 60, 0.3);
  color: #fdba74;
}

body.dark-results .cognitive-function:nth-child(4) {
  background: linear-gradient(135deg, rgba(124, 196, 255, 0.2), rgba(124, 196, 255, 0.08));
  border-color: rgba(124, 196, 255, 0.3);
  color: #c7d2fe;
}

body.dark-results .cognitive-function:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* --- Insight Content Text — Better Readability --- */
body.dark-results .psych-insight-content {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  font-size: 1.02rem;
}

body.dark-results .psych-insight-content p {
  margin-bottom: 0;
}

/* --- Deeper Insights Section --- */
body.dark-results .additional-insights-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

body.dark-results .additional-insights-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 3px;
}

body.dark-results .additional-insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* --- Psych Insight Cards — Individual Accent Colors --- */
body.dark-results .psych-insight-card {
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

body.dark-results .psych-insight-card:nth-child(1) {
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #f59e0b, #fbbf24) 1;
  border-image-slice: 1 0 0 0;
}

body.dark-results .psych-insight-card:nth-child(2) {
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #ef4444, #f87171) 1;
  border-image-slice: 1 0 0 0;
}

body.dark-results .psych-insight-card:nth-child(3) {
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #10b981, #34d399) 1;
  border-image-slice: 1 0 0 0;
}

body.dark-results .insight-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 12px;
}

body.dark-results .psych-insight-card:nth-child(1) .insight-card-title {
  color: #fbbf24;
}

body.dark-results .psych-insight-card:nth-child(2) .insight-card-title {
  color: #f87171;
}

body.dark-results .psych-insight-card:nth-child(3) .insight-card-title {
  color: #6ee7b7;
}

body.dark-results .insight-card-content {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

/* --- Panel Intro Text Enhancement --- */
body.dark-results .panel-intro {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  border-left: 3px solid rgba(91, 155, 255, 0.4);
  padding-left: 16px;
  margin-bottom: 28px;
}

/* --- Teaser CTA (per-tab unlock prompt) — floats over the lower blurred rows --- */
body.dark-results .teaser-cta-overlay {
  background: linear-gradient(to bottom,
      rgba(15, 12, 41, 0) 0%,
      rgba(15, 12, 41, 0.82) 45%,
      rgba(15, 12, 41, 1) 100%) !important;
}

body.dark-results .teaser-cta-content {
  background: rgba(25, 22, 60, 0.95) !important;
  border: 1px solid rgba(91, 155, 255, 0.25) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(20px);
}

body.dark-results .teaser-cta-content h4 {
  color: rgba(255, 255, 255, 0.95) !important;
}

body.dark-results .teaser-cta-content p {
  color: rgba(255, 255, 255, 0.6) !important;
}

body.dark-results .teaser-cta-content i {
  color: #7cc4ff !important;
}

body.dark-results .teaser-unlock-button {
  background: linear-gradient(135deg, #5b9bff 0%, #2a6f9e 100%) !important;
  box-shadow: 0 4px 15px rgba(91, 155, 255, 0.35) !important;
}

body.dark-results .teaser-unlock-button:hover {
  box-shadow: 0 6px 25px rgba(91, 155, 255, 0.5) !important;
}

/* --- Upgrade Prompt (main CTA section) --- */
body.dark-results .upgrade-prompt {
  background: rgba(20, 17, 50, 0.8) !important;
  background-image: none !important;
  border: 1px solid rgba(91, 155, 255, 0.2) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
}

body.dark-results .upgrade-prompt h3 {
  background: linear-gradient(90deg, #60a5fa, #7cc4ff) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

body.dark-results .upgrade-prompt p,
body.dark-results .upgrade-content > p {
  color: rgba(255, 255, 255, 0.6) !important;
}

body.dark-results .upgrade-icon {
  box-shadow: 0 4px 20px rgba(91, 155, 255, 0.4);
}

body.dark-results .section-preview {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-left: 3px solid rgba(91, 155, 255, 0.4) !important;
  box-shadow: none !important;
}

body.dark-results .section-preview span {
  color: rgba(255, 255, 255, 0.85) !important;
}

body.dark-results .section-preview i {
  color: #7cc4ff !important;
}

body.dark-results .upgrade-main-button {
  background: linear-gradient(135deg, #5b9bff 0%, #2a6f9e 100%) !important;
  box-shadow: 0 4px 20px rgba(91, 155, 255, 0.4) !important;
  border-radius: 12px !important;
}

body.dark-results .upgrade-main-button:hover {
  box-shadow: 0 6px 30px rgba(91, 155, 255, 0.6) !important;
}

body.dark-results .download-preview-button {
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px !important;
}

body.dark-results .download-preview-button:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

/* --- Promo Banner Dark --- */
body.dark-results .upgrade-promo-banner {
  background: linear-gradient(135deg, rgba(91, 155, 255, 0.15), rgba(124, 196, 255, 0.1)) !important;
  border: 1px solid rgba(91, 155, 255, 0.3) !important;
  border-radius: 12px !important;
}

body.dark-results .upgrade-promo-banner::before {
  background: linear-gradient(135deg, rgba(91, 155, 255, 0.1), transparent) !important;
}

body.dark-results .upgrade-promo-text,
body.dark-results .upgrade-promo-text strong {
  color: #fbbf24 !important;
}

body.dark-results .upgrade-promo-code {
  color: rgba(255, 255, 255, 0.7) !important;
}

body.dark-results .promo-code-badge {
  background: rgba(91, 155, 255, 0.2) !important;
  color: #7cc4ff !important;
  border-color: rgba(91, 155, 255, 0.3) !important;
}

body.dark-results .upgrade-promo-slots,
body.dark-results .upgrade-promo-slots small {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* --- Save Results Button Dark --- */
body.dark-results .save-results-only-button {
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-results .save-results-only-button:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
}

/* --- Print Override: revert to light for printing --- */
@media print {
  body.dark-results {
    background: white !important;
  }
  body.dark-results .results-container {
    background: white !important;
    color: #333 !important;
    backdrop-filter: none !important;
    border: 1px solid #ddd !important;
  }
  body.dark-results .career-item,
  body.dark-results .trait-card,
  body.dark-results .dimension-card,
  body.dark-results .personality-insight-item,
  body.dark-results .growth-strategy {
    background: #f8f9fa !important;
    color: #333 !important;
  }
}
