/* 
 * Gallup CliftonStrengths Online Testing - Modern Premium CSS
 * Dark Theme with HSL-tailored colors, Glassmorphism, and responsive grids
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* HSL Tailored Colors for Classical Light Theme (Default) */
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #eff6ff 50%, #e2e8f0 100%);
  --bg-dark: #f8fafc;
  --bg-slate: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  /* Domain Theme Colors (Gallup Official CliftonStrengths Branding) */
  --color-executing: #7b2481;       /* Purple */
  --color-executing-bg: rgba(123, 36, 129, 0.08);
  --color-executing-border: rgba(123, 36, 129, 0.15);
  
  --color-influencing: #e97200;     /* Orange */
  --color-influencing-bg: rgba(233, 114, 0, 0.08);
  --color-influencing-border: rgba(233, 114, 0, 0.15);
  
  --color-relationship: #0070cd;    /* Blue */
  --color-relationship-bg: rgba(0, 112, 205, 0.08);
  --color-relationship-border: rgba(0, 112, 205, 0.15);
  
  --color-strategic: #00945d;       /* Green */
  --color-strategic-bg: rgba(0, 148, 93, 0.08);
  --color-strategic-border: rgba(0, 148, 93, 0.15);
  
  /* UI Glass & Glow (Light variations) */
  --primary-glow: rgba(0, 112, 205, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.4);
  --card-border: rgba(15, 23, 42, 0.05);
  --btn-sec-bg: rgba(15, 23, 42, 0.05);
  --panel-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
  --slider-neutral-bg: #ffffff;
  
  /* Fonts */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Card Radius & Shadows */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --shadow-glow: 0 10px 30px -10px rgba(0, 112, 205, 0.15);
  --shadow-card: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
}

/* Base resets & layout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 60px;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Glassmorphism utility */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
}

.glass-hover:hover {
  border-color: rgba(15, 23, 42, 0.15);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12), 0 0 20px 0 rgba(37, 99, 235, 0.08);
  transform: translateY(-4px);
}

/* Header & Container */
.app-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(to right, #3b82f6, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  cursor: pointer;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #3b82f6, #ec4899);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* Views display switcher */
.view-section {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

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

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

/* Buttons and Inputs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* ==========================================================================
   LANDING VIEW
   ========================================================================== */
/* ==========================================================================
   LANDING VIEW (Modern SaaS Layout)
   ========================================================================== */
.hero {
  text-align: center;
  padding: 80px 20px 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.6rem;
  line-height: 1.15;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary) 0%, #1e293b 50%, #475569 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Metrics Section */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px auto 60px auto;
  max-width: 1000px;
}

.metric-card {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.12), 0 0 25px rgba(37, 99, 235, 0.08);
}

.metric-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.metric-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Philosophy Section */
.philosophy-section {
  padding: 40px 0;
  max-width: 1000px;
  margin: 0 auto;
}

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

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

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

.philosophy-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.philosophy-card.weakness {
  border-left: 6px solid var(--text-muted);
}

.philosophy-card.strengths {
  border-left: 6px solid var(--color-strategic);
  background: linear-gradient(to right bottom, rgba(37, 99, 235, 0.03), rgba(139, 92, 246, 0.03));
}

.philosophy-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.philosophy-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.philosophy-card li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 20px;
}

.philosophy-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-weight: bold;
}

.philosophy-card.strengths li::before {
  color: var(--color-strategic);
}

/* Impact highlights */
.impact-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.impact-stat {
  text-align: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.impact-val {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-strategic);
}

.impact-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Landing Domains Preview */
.domains-preview {
  padding: 40px 0;
  max-width: 1100px;
  margin: 0 auto;
}

.domains-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.preview-domain-card {
  padding: 24px;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  height: 100%;
}

.preview-domain-card:hover {
  transform: translateY(-4px);
}

.preview-domain-card.executing { border-top: 4px solid var(--color-executing); }
.preview-domain-card.influencing { border-top: 4px solid var(--color-influencing); }
.preview-domain-card.relationship { border-top: 4px solid var(--color-relationship); }
.preview-domain-card.strategic { border-top: 4px solid var(--color-strategic); }

.preview-domain-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.preview-domain-card.executing h3 { color: var(--color-executing); }
.preview-domain-card.influencing h3 { color: var(--color-influencing); }
.preview-domain-card.relationship h3 { color: var(--color-relationship); }
.preview-domain-card.strategic h3 { color: var(--color-strategic); }

.preview-domain-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.preview-domain-themes {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 16px;
  border-top: 1px dashed var(--glass-border);
  padding-top: 10px;
}

/* Academic Backing */
.academic-section {
  padding: 40px 0;
  max-width: 1000px;
  margin: 0 auto;
}

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

.paper-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: all 0.3s ease;
}

.paper-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.2);
}

.paper-header {
  margin-bottom: 16px;
}

.paper-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-strategic);
  background: rgba(37, 99, 235, 0.08);
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}

.paper-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.paper-citation {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 12px;
}

.paper-summary {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Steps Guideline */
.steps-section {
  padding: 40px 0;
  max-width: 900px;
  margin: 0 auto;
}

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

.step-card {
  text-align: center;
  position: relative;
}

.step-num {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0 auto 16px auto;
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.3);
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.action-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 500px;
  margin: 0 auto;
}

.config-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .3s;
  border-radius: 34px;
  border: 1px solid var(--glass-border);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #3b82f6;
}

input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

/* ==========================================================================
   TEST VIEW
   ========================================================================== */
#test-view {
  height: calc(100vh - 80px);
  display: none;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

#test-view.active {
  display: flex;
}

@media (max-height: 660px) {
  #test-view {
    height: auto;
    min-height: calc(100vh - 80px);
    overflow: auto;
  }
}

.test-container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 0;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.progress-bar-container {
  height: 8px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(to right, #3b82f6, #a855f7);
  width: 0%;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 10px;
}

/* Question card design */
.question-card {
  border-radius: var(--radius-lg);
  padding: 32px 32px 24px 32px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.question-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #a855f7, #ec4899);
}

.timer-ring-container {
  position: absolute;
  top: 15px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.timer-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-strategic);
  transition: background 0.3s;
}

.timer-warning {
  background: #ef4444 !important;
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(1.2); opacity: 0.6; }
}

.statements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 20px;
  position: relative;
}

.statements-grid::after {
  content: "VS";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-slate);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  z-index: 2;
}

.statement-box {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 110px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.statement-box.side-a {
  text-align: right;
  border-right: 4px solid rgba(59, 130, 246, 0.2);
  padding-right: 32px;
}

.statement-box.side-b {
  text-align: left;
  border-left: 4px solid rgba(168, 85, 247, 0.2);
  padding-left: 32px;
}

.statement-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.statement-text {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Gallup Visual Spectrum Slider */
.spectrum-container {
  position: relative;
  padding: 24px 0 16px 0;
  margin-bottom: 20px;
  width: 100%;
}

.spectrum-track {
  position: absolute;
  top: 43px; /* aligns perfectly with centers of dots when padding-top is 24px */
  left: 60px;
  right: 60px;
  height: 3px;
  background: linear-gradient(90deg, 
    #3b82f6 0%, 
    rgba(59, 130, 246, 0.4) 30%, 
    rgba(148, 163, 184, 0.2) 50%, 
    rgba(168, 85, 247, 0.4) 70%, 
    #a855f7 100%
  );
  border-radius: 4px;
  z-index: 1;
}

.choices-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.choice-btn {
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0;
  width: 100px;
  outline: none;
}

.choice-circle {
  border-radius: 50%;
  border: 3px solid var(--text-muted);
  background: var(--slider-neutral-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

/* Visual bubble sizing matching Gallup CliftonStrengths */
.choice-btn.dot-strongly-a .choice-circle,
.choice-btn.dot-strongly-b .choice-circle {
  width: 38px;
  height: 38px;
}

.choice-btn.dot-agree-a .choice-circle,
.choice-btn.dot-agree-b .choice-circle {
  width: 28px;
  height: 28px;
}

.choice-btn.dot-neutral .choice-circle {
  width: 18px;
  height: 18px;
}

.choice-circle::after {
  content: "";
  border-radius: 50%;
  background: transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.choice-btn.dot-strongly-a .choice-circle::after,
.choice-btn.dot-strongly-b .choice-circle::after {
  width: 18px;
  height: 18px;
}

.choice-btn.dot-agree-a .choice-circle::after,
.choice-btn.dot-agree-b .choice-circle::after {
  width: 12px;
  height: 12px;
}

.choice-btn.dot-neutral .choice-circle::after {
  width: 8px;
  height: 8px;
}

.choice-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 14px;
  white-space: nowrap;
  transition: all 0.3s;
}

.choice-shortcut {
  position: absolute;
  top: -30px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: monospace;
  opacity: 0.7;
  transition: all 0.3s;
}

.choice-btn:hover .choice-shortcut,
.choice-btn.selected .choice-shortcut {
  opacity: 1;
  background: var(--text-primary);
  color: var(--bg-dark);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

/* Selection and Hover Color Coding */
/* Strongly Agree A */
.choice-btn.dot-strongly-a:hover .choice-circle,
.choice-btn.dot-strongly-a.selected .choice-circle {
  border-color: #3b82f6;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
  background: #3b82f6;
}
.choice-btn.dot-strongly-a.selected .choice-circle::after {
  background: white;
}
.choice-btn.dot-strongly-a:hover .choice-text,
.choice-btn.dot-strongly-a.selected .choice-text {
  color: #3b82f6;
}

/* Agree A */
.choice-btn.dot-agree-a:hover .choice-circle,
.choice-btn.dot-agree-a.selected .choice-circle {
  border-color: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}
.choice-btn.dot-agree-a.selected .choice-circle::after {
  background: #3b82f6;
}
.choice-btn.dot-agree-a:hover .choice-text,
.choice-btn.dot-agree-a.selected .choice-text {
  color: #3b82f6;
}

/* Neutral */
.choice-btn.dot-neutral:hover .choice-circle,
.choice-btn.dot-neutral.selected .choice-circle {
  border-color: #94a3b8;
  box-shadow: 0 0 8px rgba(148, 163, 184, 0.3);
}
.choice-btn.dot-neutral.selected .choice-circle::after {
  background: #94a3b8;
}
.choice-btn.dot-neutral:hover .choice-text,
.choice-btn.dot-neutral.selected .choice-text {
  color: #94a3b8;
}

/* Agree B */
.choice-btn.dot-agree-b:hover .choice-circle,
.choice-btn.dot-agree-b.selected .choice-circle {
  border-color: #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}
.choice-btn.dot-agree-b.selected .choice-circle::after {
  background: #a855f7;
}
.choice-btn.dot-agree-b:hover .choice-text,
.choice-btn.dot-agree-b.selected .choice-text {
  color: #a855f7;
}

/* Strongly Agree B */
.choice-btn.dot-strongly-b:hover .choice-circle,
.choice-btn.dot-strongly-b.selected .choice-circle {
  border-color: #a855f7;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
  background: #a855f7;
}
.choice-btn.dot-strongly-b.selected .choice-circle::after {
  background: white;
}
.choice-btn.dot-strongly-b:hover .choice-text,
.choice-btn.dot-strongly-b.selected .choice-text {
  color: #a855f7;
}

/* Modern CSS :has() sibling highlights for Statement boxes */
.question-card:has(.choice-btn.dot-strongly-a:hover) .statement-box.side-a,
.question-card:has(.choice-btn.dot-agree-a:hover) .statement-box.side-a {
  border-right-color: #3b82f6;
  background: rgba(59, 130, 246, 0.02);
  transform: translateX(-4px);
}
.question-card:has(.choice-btn.dot-strongly-a.selected) .statement-box.side-a,
.question-card:has(.choice-btn.dot-agree-a.selected) .statement-box.side-a {
  border-right-color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
  transform: translateX(-4px);
}

.question-card:has(.choice-btn.dot-strongly-b:hover) .statement-box.side-b,
.question-card:has(.choice-btn.dot-agree-b:hover) .statement-box.side-b {
  border-left-color: #a855f7;
  background: rgba(168, 85, 247, 0.02);
  transform: translateX(4px);
}
.question-card:has(.choice-btn.dot-strongly-b.selected) .statement-box.side-b,
.question-card:has(.choice-btn.dot-agree-b.selected) .statement-box.side-b {
  border-left-color: #a855f7;
  background: rgba(168, 85, 247, 0.05);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
  transform: translateX(4px);
}

.test-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shortcuts-tip {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 24px;
}

/* ==========================================================================
   RESULTS DASHBOARD VIEW
   ========================================================================== */
.results-header-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}

.results-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.results-title h2 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.results-title p {
  color: var(--text-secondary);
}

.results-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(15, 23, 42, 0.02);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.results-controls-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Signature themes display */
.signature-section {
  margin-bottom: 50px;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(15, 23, 42, 0.1);
}

.signature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* responsive top 5 */
@media (max-width: 1024px) {
  .signature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .signature-grid {
    grid-template-columns: 1fr;
  }
  .statements-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .statements-grid::after {
    top: auto;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  /* Mobile responsive for visual spectrum */
  .spectrum-track {
    left: 30px;
    right: 30px;
    top: 40px; /* aligns perfectly with smaller bubble centers on mobile */
  }
  .choice-btn {
    width: 65px;
  }
  .choice-text {
    font-size: 0.75rem;
    margin-top: 10px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.2;
  }
  .choice-btn.dot-strongly-a .choice-circle,
  .choice-btn.dot-strongly-b .choice-circle {
    width: 32px;
    height: 32px;
  }
  .choice-btn.dot-agree-a .choice-circle,
  .choice-btn.dot-agree-b .choice-circle {
    width: 24px;
    height: 24px;
  }
  .choice-btn.dot-neutral .choice-circle {
    width: 14px;
    height: 14px;
  }
  .choice-shortcut {
    top: -26px;
    padding: 0px 4px;
    font-size: 0.7rem;
  }
}

.theme-card {
  border-radius: var(--radius-md);
  padding: 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.theme-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
}

/* Domain color variations for card styles */
.theme-card.domain-executing::before { background: var(--color-executing); }
.theme-card.domain-influencing::before { background: var(--color-influencing); }
.theme-card.domain-relationship::before { background: var(--color-relationship); }
.theme-card.domain-strategic::before { background: var(--color-strategic); }

.theme-card.domain-executing { border-bottom: 2px solid var(--color-executing-border); }
.theme-card.domain-influencing { border-bottom: 2px solid var(--color-influencing-border); }
.theme-card.domain-relationship { border-bottom: 2px solid var(--color-relationship-border); }
.theme-card.domain-strategic { border-bottom: 2px solid var(--color-strategic-border); }

.theme-card-rank {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  opacity: 0.15;
  margin-bottom: 12px;
}

.theme-card-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.theme-card-domain {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 16px;
  width: fit-content;
}

.domain-executing .theme-card-domain { background: var(--color-executing-bg); color: var(--color-executing); }
.domain-influencing .theme-card-domain { background: var(--color-influencing-bg); color: var(--color-influencing); }
.domain-relationship .theme-card-domain { background: var(--color-relationship-bg); color: var(--color-relationship); }
.domain-strategic .theme-card-domain { background: var(--color-strategic-bg); color: var(--color-strategic); }

.theme-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.theme-card-footer {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Domain summary */
.domains-section {
  margin-bottom: 50px;
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .domains-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .domains-grid {
    grid-template-columns: 1fr;
  }
}

.domain-progress-card {
  padding: 24px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--text-muted);
}

.domain-progress-card.executing { border-left-color: var(--color-executing); }
.domain-progress-card.influencing { border-left-color: var(--color-influencing); }
.domain-progress-card.relationship { border-left-color: var(--color-relationship); }
.domain-progress-card.strategic { border-left-color: var(--color-strategic); }

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

.domain-card-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.domain-card-score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

.domain-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.domain-bar-fill {
  height: 100%;
  border-radius: 4px;
  width: 0%;
  transition: width 0.8s cubic-bezier(0.1, 1, 0.1, 1);
}

.executing .domain-bar-fill { background: var(--color-executing); }
.influencing .domain-bar-fill { background: var(--color-influencing); }
.relationship .domain-bar-fill { background: var(--color-relationship); }
.strategic .domain-bar-fill { background: var(--color-strategic); }

.domain-card-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Detail lookup & Full list */
.detail-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

@media (max-width: 900px) {
  .detail-section {
    grid-template-columns: 1fr;
  }
}

.full-list-card, .search-card {
  padding: 30px;
  border-radius: var(--radius-lg);
}

.search-header {
  margin-bottom: 20px;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  margin-top: 10px;
}

.search-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px 16px 14px 44px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.2s;
}

.search-input:focus {
  border-color: var(--color-strategic);
  outline: none;
  background: rgba(15, 23, 42, 0.04);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.theme-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

/* Custom scrollbar */
.theme-pill-grid::-webkit-scrollbar,
.detail-content::-webkit-scrollbar,
.table-wrapper::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.theme-pill-grid::-webkit-scrollbar-track,
.detail-content::-webkit-scrollbar-track,
.table-wrapper::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.02);
}
.theme-pill-grid::-webkit-scrollbar-thumb,
.detail-content::-webkit-scrollbar-thumb,
.table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.1);
  border-radius: 10px;
}

.theme-pill {
  padding: 8px 16px;
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid var(--glass-border);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-pill:hover, .theme-pill.active {
  background: var(--text-primary);
  color: var(--bg-dark);
  font-weight: 600;
  border-color: var(--text-primary);
  transform: translateY(-1px);
}

.theme-pill.active.domain-executing { background: var(--color-executing); color: white; border-color: var(--color-executing); }
.theme-pill.active.domain-influencing { background: var(--color-influencing); color: white; border-color: var(--color-influencing); }
.theme-pill.active.domain-relationship { background: var(--color-relationship); color: white; border-color: var(--color-relationship); }
.theme-pill.active.domain-strategic { background: var(--color-strategic); color: white; border-color: var(--color-strategic); }

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.theme-pill:hover .pill-dot { background-color: transparent !important; }

/* Detail display panel */
.detail-display {
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
  min-height: 300px;
  max-height: 450px;
  display: flex;
  flex-direction: column;
}

.detail-display.empty {
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.detail-display-header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.detail-display-name {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.detail-content {
  overflow-y: auto;
  flex: 1;
  padding-right: 8px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.detail-brief {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 16px;
  border-left: 2px solid var(--color-strategic);
  padding-left: 12px;
}

.detail-text {
  white-space: pre-line;
}

/* All 34 ranking table */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  max-height: 480px;
  overflow-y: auto;
}

.scores-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.scores-table th {
  background: var(--bg-slate);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  padding: 14px 16px;
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 5;
}

.scores-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
  font-size: 0.9rem;
}

.scores-table tr:hover td {
  background: rgba(15, 23, 42, 0.02);
}

.table-rank {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.table-rank-top5 {
  color: #fbbf24;
}

.table-theme-name {
  font-weight: 600;
}

.table-score-bar-bg {
  width: 100px;
  height: 6px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 4px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}

.table-score-bar-fill {
  height: 100%;
  background: #3b82f6;
  border-radius: 4px;
}

/* Modal Popup (General Theme details on click of Top 5) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  max-width: 650px;
  width: 90%;
  max-height: 80vh;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlideUp {
  from { transform: translateY(30px); }
  to { transform: translateY(0); }
}

.modal-header {
  padding: 24px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title-wrapper {
  display: flex;
  flex-direction: column;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding: 30px;
  overflow-y: auto;
  flex: 1;
}

/* Warning alert box */
.alert-box {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
  color: #b91c1c;
  font-size: 0.9rem;
}

.alert-title {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

/* ==========================================================================
   INTERACTIVE STRENGTHS WHEEL & VISUAL CHART STYLES
   ========================================================================== */
.wheel-layout-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .wheel-layout-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.wheel-chart-wrapper {
  position: relative;
  width: 100%;
}

.strengths-wheel-svg {
  filter: drop-shadow(0 10px 25px rgba(15, 23, 42, 0.04));
  overflow: visible;
}

.wheel-slice {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
  stroke: #ffffff;
  stroke-linejoin: round;
}

.wheel-slice:hover {
  filter: drop-shadow(0 0 12px rgba(15, 23, 42, 0.12));
}

.wheel-label {
  font-family: var(--font-body);
  transition: fill 0.2s, font-weight 0.2s;
  user-select: none;
}

.wheel-label:hover {
  font-weight: 800 !important;
}

/* Tooltip */
.wheel-tooltip {
  position: absolute;
  background: rgba(15, 23, 42, 0.95);
  color: white;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  line-height: 1.5;
}

/* Right-side Detail panel card */
.wheel-theme-detail-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px -5px rgba(15, 23, 42, 0.04);
}

.wheel-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 16px;
}

.wheel-detail-rank-badge {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: white;
}

.wheel-detail-header.domain-executing .wheel-detail-rank-badge { background-color: var(--color-executing); }
.wheel-detail-header.domain-influencing .wheel-detail-rank-badge { background-color: var(--color-influencing); }
.wheel-detail-header.domain-relationship .wheel-detail-rank-badge { background-color: var(--color-relationship); }
.wheel-detail-header.domain-strategic .wheel-detail-rank-badge { background-color: var(--color-strategic); }

.wheel-detail-title-group h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.wheel-detail-body {
  flex: 1;
}

/* Circular progress bar indicators */
.circular-progress {
  transform-origin: center;
}

.circle-bg {
  stroke: rgba(15, 23, 42, 0.04);
}

.circle-fill {
  transition: stroke-dashoffset 0.8s cubic-bezier(0.1, 1, 0.1, 1);
}

.domain-circle-value {
  user-select: none;
}


/* ==========================================================================
   PRINT MEDIA STYLES (PDF EXPORT)
   ========================================================================== */
@media print {
  body {
    background: white !important;
    color: black !important;
    padding: 0 !important;
  }
  
  .app-header, 
  .results-controls,
  .results-top-row .btn,
  .search-card,
  .modal-overlay,
  .shortcuts-tip,
  .test-navigation,
  .action-box,
  .intro-grid,
  .hero p {
    display: none !important;
  }
  
  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }
  
  .view-section {
    display: none !important;
  }
  
  .view-section#results-view {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .results-header-card {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 30px !important;
    box-shadow: none !important;
    color: black !important;
  }

  .results-title h2 {
    color: black !important;
    font-size: 2rem !important;
  }
  
  .results-title p {
    color: #475569 !important;
  }

  .section-title {
    color: black !important;
    border-bottom: 2px solid #cbd5e1 !important;
    padding-bottom: 6px !important;
    margin-top: 40px !important;
  }
  
  .section-title::after {
    display: none !important;
  }

  .signature-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    page-break-inside: avoid;
  }

  .theme-card {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: black !important;
    min-height: auto !important;
    page-break-inside: avoid;
    box-shadow: none !important;
    transform: none !important;
  }
  
  .theme-card-rank {
    opacity: 0.4 !important;
    color: #475569 !important;
    font-size: 2rem !important;
  }

  .theme-card-name {
    color: black !important;
  }

  .theme-card-desc {
    color: #334155 !important;
    display: block !important;
    overflow: visible !important;
    -webkit-line-clamp: none !important;
  }

  .theme-card-footer {
    display: none !important;
  }

  .domains-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    page-break-inside: avoid;
    gap: 16px !important;
  }

  .domain-progress-card {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-top: 4px solid var(--color-executing) !important;
    color: black !important;
    box-shadow: none !important;
    padding: 16px !important;
  }
  
  .domain-progress-card.executing { border-top-color: var(--color-executing) !important; }
  .domain-progress-card.influencing { border-top-color: var(--color-influencing) !important; }
  .domain-progress-card.relationship { border-top-color: var(--color-relationship) !important; }
  .domain-progress-card.strategic { border-top-color: var(--color-strategic) !important; }

  .circular-progress circle {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .wheel-section {
    background: transparent !important;
    border: 1px solid #cbd5e1 !important;
    padding: 20px !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }

  .wheel-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .wheel-info-panel, .wheel-detail-footer {
    display: none !important; /* hide detail panel in print as top 5 cards and 34 table cover all details */
  }

  .wheel-chart-wrapper {
    max-width: 320px !important;
    margin: 0 auto !important;
  }

  .detail-section {
    grid-template-columns: 1fr !important;
    page-break-inside: avoid;
  }

  .full-list-card {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
  }

  .table-wrapper {
    max-height: none !important;
    overflow: visible !important;
    border: 1px solid #cbd5e1 !important;
  }

  .scores-table th {
    background: #f1f5f9 !important;
    color: black !important;
    border-bottom: 1px solid #cbd5e1 !important;
    position: static !important;
  }

  .scores-table td {
    color: black !important;
    border-bottom: 1px solid #cbd5e1 !important;
  }
  
  .table-score-bar-bg {
    background: #e2e8f0 !important;
  }
  
  .table-score-bar-fill {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    background-color: #3b82f6 !important;
  }
}

/* ==========================================================================
   OFFICIAL GALLUP PDF STYLES ALIGNMENT
   ========================================================================== */

/* Summary Layout styling */
.official-summary-layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 30px;
  margin-top: 25px;
}

.official-lists-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

.summary-list-column {
  display: flex;
  flex-direction: column;
}

.summary-column-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-column-title.highlight-strengthen span:first-child {
  color: var(--color-strategic); /* Green/Strengthen signature label */
}

.summary-column-title.highlight-browse span:first-child {
  color: var(--text-muted); /* Grayish Browse label */
}

.summary-column-title .rank-range {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: normal;
}

.summary-list-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Individual list item in Strengths summary */
.compact-theme-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.01);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  font-size: 0.88rem;
}

.compact-theme-item:hover {
  background: rgba(15, 23, 42, 0.03);
  transform: translateX(2px);
  cursor: pointer;
}

.compact-theme-item .item-rank {
  font-family: var(--font-display);
  font-weight: 700;
  width: 22px;
  text-align: right;
  color: var(--text-secondary);
}

.compact-theme-item .item-name {
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

/* Dominant Domain Card styling */
.dominant-domain-card {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
  background: rgba(15, 23, 42, 0.01);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dominant-title-text {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.domain-mini-descriptions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.domain-desc-item {
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.domain-desc-item.active-dominant {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transform: scale(1.02);
}

.domain-desc-item.active-dominant.active-executing { border-color: rgba(123, 36, 129, 0.25); border-left: 4px solid var(--color-executing); }
.domain-desc-item.active-dominant.active-influencing { border-color: rgba(233, 114, 0, 0.25); border-left: 4px solid var(--color-influencing); }
.domain-desc-item.active-dominant.active-relationship { border-color: rgba(0, 112, 205, 0.25); border-left: 4px solid var(--color-relationship); }
.domain-desc-item.active-dominant.active-strategic { border-color: rgba(0, 148, 93, 0.25); border-left: 4px solid var(--color-strategic); }

.domain-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-top: 5px;
  flex-shrink: 0;
}

.domain-dot.dot-executing { background: var(--color-executing); }
.domain-dot.dot-influencing { background: var(--color-influencing); }
.domain-dot.dot-relationship { background: var(--color-relationship); }
.domain-dot.dot-strategic { background: var(--color-strategic); }

.domain-summary-desc {
  color: var(--text-secondary);
  display: block;
  margin-top: 2px;
}

.dominant-card-footer {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 16px;
  border-top: 1px dashed var(--glass-border);
  padding-top: 12px;
  text-align: center;
}

/* Official Domain Grid Container (4 columns side-by-side) */
.official-domain-grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.official-grid-column {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.4);
  overflow: hidden;
}

.grid-column-header {
  padding: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
  letter-spacing: 0.05em;
}

.official-grid-column.domain-executing .grid-column-header { background: var(--color-executing); }
.official-grid-column.domain-influencing .grid-column-header { background: var(--color-influencing); }
.official-grid-column.domain-relationship .grid-column-header { background: var(--color-relationship); }
.official-grid-column.domain-strategic .grid-column-header { background: var(--color-strategic); }

.grid-column-sub-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 15px;
  flex-grow: 1;
}

/* Grid cards representing each theme */
.grid-theme-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  border-radius: var(--radius-sm);
  text-align: center;
  min-height: 76px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.grid-theme-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  cursor: pointer;
}

.grid-theme-card .grid-card-rank {
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 4px;
}

.grid-theme-card .grid-card-name {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  word-break: keep-all;
}

/* Grid theme card states based on Top 10 vs Bottom 24 */
.grid-theme-card.rank-top10 {
  color: white;
}

.grid-theme-card.rank-top10.domain-executing { background: var(--color-executing); }
.grid-theme-card.rank-top10.domain-influencing { background: var(--color-influencing); }
.grid-theme-card.rank-top10.domain-relationship { background: var(--color-relationship); }
.grid-theme-card.rank-top10.domain-strategic { background: var(--color-strategic); }

.grid-theme-card.rank-top10 .grid-card-rank {
  font-size: 1.15rem;
}

.grid-theme-card.rank-bottom24 {
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.grid-theme-card.rank-bottom24.domain-executing { background: rgba(123, 36, 129, 0.03); color: var(--color-executing); }
.grid-theme-card.rank-bottom24.domain-influencing { background: rgba(233, 114, 0, 0.03); color: var(--color-influencing); }
.grid-theme-card.rank-bottom24.domain-relationship { background: rgba(0, 112, 205, 0.03); color: var(--color-relationship); }
.grid-theme-card.rank-bottom24.domain-strategic { background: rgba(0, 148, 93, 0.03); color: var(--color-strategic); }

.grid-theme-card.rank-bottom24 .grid-card-rank {
  font-size: 0.75rem;
  opacity: 0.75;
}

.grid-theme-card.rank-bottom24 .grid-card-name {
  opacity: 0.9;
}

/* SVG DNA Ribbon Styling */
.dna-ribbon-svg {
  display: block;
  width: 100%;
  height: auto;
}

.dna-ribbon-bar {
  transition: all 0.2s ease;
}

.dna-ribbon-bar:hover {
  opacity: 0.85;
  cursor: pointer;
}

/* Print Overrides for Official Gallup Alignment */
@media print {
  .official-summary-section {
    background: transparent !important;
    border: 1px solid #cbd5e1 !important;
    padding: 20px !important;
    box-shadow: none !important;
    page-break-inside: avoid !important;
  }
  
  .official-summary-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .dominant-domain-card {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    page-break-inside: avoid !important;
  }
  
  .domain-grid-section {
    background: transparent !important;
    border: 1px solid #cbd5e1 !important;
    padding: 20px !important;
    box-shadow: none !important;
    page-break-inside: avoid !important;
  }
  
  .official-domain-grid-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    page-break-inside: avoid !important;
  }
  
  .grid-theme-card {
    page-break-inside: avoid !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .compact-theme-item {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
  }
  
  .grid-theme-card.rank-bottom24.domain-executing { background: rgba(123, 36, 129, 0.03) !important; }
  .grid-theme-card.rank-bottom24.domain-influencing { background: rgba(233, 114, 0, 0.03) !important; }
  .grid-theme-card.rank-bottom24.domain-relationship { background: rgba(0, 112, 205, 0.03) !important; }
  .grid-theme-card.rank-bottom24.domain-strategic { background: rgba(0, 148, 93, 0.03) !important; }
}

/* Advice Layout grid */
.advice-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  margin-top: 25px;
}

.advice-domain-col {
  display: flex;
  flex-direction: column;
}

.advice-themes-col {
  display: flex;
  flex-direction: column;
}

.advice-column-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.advice-theme-cards-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Advice Theme Card styling */
.advice-theme-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.01);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

.advice-theme-card:hover {
  transform: translateX(4px);
  background: rgba(15, 23, 42, 0.02);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.advice-card-rank-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: white;
  flex-shrink: 0;
  margin-top: 2px;
}

.advice-theme-card.domain-executing .advice-card-rank-badge { background: var(--color-executing); }
.advice-theme-card.domain-influencing .advice-card-rank-badge { background: var(--color-influencing); }
.advice-theme-card.domain-relationship .advice-card-rank-badge { background: var(--color-relationship); }
.advice-theme-card.domain-strategic .advice-card-rank-badge { background: var(--color-strategic); }

.advice-card-content {
  flex: 1;
}

.advice-card-theme-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.advice-card-tip-text {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

/* AI Coaching Section */
.ai-section-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.ai-badge {
  background: var(--color-executing-bg);
  color: var(--color-executing);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid var(--color-executing-border);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ai-setup-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.ai-setup-box {
  background: rgba(15, 23, 42, 0.01);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
  max-width: 600px;
  width: 100%;
}

.ai-setup-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.ai-setup-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.ai-input-group {
  display: flex;
  gap: 10px;
}

.ai-key-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: border-color 0.2s;
  color: var(--text-primary);
}

.ai-key-input:focus {
  outline: none;
  border-color: var(--color-executing);
}

.ai-key-tip {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.4;
}

.ai-key-link {
  color: var(--color-executing);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed var(--color-executing);
}

.ai-key-link:hover {
  border-bottom-style: solid;
}

.ai-key-status-text {
  font-size: 0.84rem;
  color: var(--color-strategic);
  font-weight: 600;
}

.ai-edit-key-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.78rem;
  text-decoration: underline;
  padding: 0;
}

.ai-edit-key-btn:hover {
  color: var(--text-secondary);
}

/* Spinner for Loading Button */
.ai-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spinner-rot 0.8s linear infinite;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes spinner-rot {
  to { transform: rotate(360deg); }
}

/* AI Output Box */
.ai-output-box {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
  background: rgba(255, 255, 255, 0.65);
  margin-top: 24px;
  text-align: left;
}

.ai-output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.ai-output-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-markdown-content {
  line-height: 1.7;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.ai-markdown-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  padding-bottom: 6px;
}

.ai-markdown-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 18px;
  margin-bottom: 8px;
}

.ai-markdown-content p {
  margin-bottom: 14px;
}

.ai-markdown-content ul, .ai-markdown-content ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

.ai-markdown-content li {
  margin-bottom: 6px;
}

.ai-markdown-content strong {
  color: var(--text-primary);
  font-weight: 700;
}

.ai-markdown-content blockquote {
  border-left: 4px solid var(--color-executing);
  background: rgba(15, 23, 42, 0.02);
  padding: 10px 16px;
  margin: 14px 0;
  border-radius: 0 4px 4px 0;
  color: var(--text-primary);
  font-style: italic;
}

/* Responsive Overrides */
@media (max-width: 991px) {
  .advice-layout-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .official-summary-layout {
    grid-template-columns: 1fr;
  }
  .official-domain-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .official-lists-container {
    grid-template-columns: 1fr;
  }
  .official-domain-grid-container {
    grid-template-columns: 1fr;
  }
  .grid-column-sub-columns {
    grid-template-columns: 1fr 1fr;
  }
  .advice-theme-card {
    padding: 12px;
    gap: 12px;
  }
  .ai-input-group {
    flex-direction: column;
    gap: 10px;
  }
  .ai-key-input {
    width: 100%;
  }
}

/* Print Overrides */
@media print {
  .action-advice-section, .ai-insights-section {
    background: transparent !important;
    border: 1px solid #cbd5e1 !important;
    padding: 20px !important;
    box-shadow: none !important;
    page-break-inside: avoid !important;
    margin-top: 30px !important;
  }

  .advice-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .advice-theme-card {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    page-break-inside: avoid !important;
  }

  .ai-setup-container,
  .ai-actions-container,
  .ai-output-header,
  #ai-error-box {
    display: none !important;
  }

  .ai-output-box {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    margin: 0 !important;
  }
}


