:root {
  --primary-color: #5e3b96; 
  --secondary-color: #34495e;
  --accent-color: #6482be; 
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #9B9B9B;
  --text-color: #333;
  --white: #fff;
  --success-color: #7ED321;
  --warning-color: #F5A623;
  --cortical-right: #5e3b96; 
  --cortical-left: #F5A623;
  --limbic-right: #7ED321;
  --limbic-left: #9B9B9B;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --gradient-purple-blue: linear-gradient(to right, #5e3b96, #6482be); 
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.phone-container {
  width: 375px;
  height: 812px;
  background-color: var(--white);
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  border: 10px solid #111;
}

.phone-header {
  height: 30px;
  background: #111;
  position: relative;
}

.notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 30px;
  background-color: #111;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.phone-footer {
  height: 30px;
  background: #111;
  position: relative;
}

.home-button {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background-color: #555;
  border-radius: 3px;
}

.screen {
  height: calc(100% - 60px);
  overflow-y: auto;
  padding: 20px;
  position: relative;
  background-color: var(--white);
}

/* Header Styles */
header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--medium-gray);
}

header h1 {
  color: var(--primary-color);
  font-size: 24px;
  margin-bottom: 5px;
}

header p {
  color: var(--dark-gray);
  font-size: 16px;
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.mind-logo {
  width: 120px;
  height: auto;
}

/* Main Content Styles */
.section {
  margin-bottom: 25px;
}

.hidden {
  display: none;
}

.progress-bar {
  height: 10px;
  background-color: var(--medium-gray);
  border-radius: 5px;
  margin-bottom: 15px;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 7%;
  background-color: var(--primary-color);
  border-radius: 5px;
}

.progress-text {
  position: absolute;
  top: -20px;
  right: 0;
  font-size: 12px;
  color: var(--dark-gray);
}

.audio-button-container {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.audio-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  font-size: 20px;
}

.audio-btn:hover {
  background-color: var(--accent-color);
  transform: scale(1.1);
}

.audio-btn:active {
  transform: scale(0.95);
}

.audio-btn.playing {
  animation: pulse 0.5s ease-in-out infinite;
}

.title-with-audio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.title-with-audio h3 {
  margin: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.title-with-audio.left-align {
  justify-content: flex-start;
}

.small-audio-btn {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

h2 {
  font-size: 18px;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

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

.choice-btn {
  padding: 12px;
  border: 2px solid var(--light-gray);
  border-radius: var(--border-radius);
  background-color: var(--white);
  font-size: 14px;
  color: var(--text-color);
  transition: all 0.3s ease;
  cursor: pointer;
}

.choice-btn:hover, .choice-btn.selected {
  border-color: var(--primary-color);
  background-color: rgba(94, 59, 150, 0.1);
}

.primary-btn, .secondary-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.primary-btn {
  background: var(--gradient-purple-blue);
  color: var(--white);
}

.secondary-btn {
  background-color: var(--light-gray);
  color: var(--secondary-color);
}

.primary-btn:hover {
  background: var(--primary-color);
}

.secondary-btn:hover {
  background-color: var(--medium-gray);
}

/* Results Styles */
.highlight {
  color: var(--primary-color);
}

.profile-description {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-color);
  margin-bottom: 20px;
}

.results-detail {
  margin-top: 30px;
}

.results-detail h3 {
  font-size: 16px;
  color: var(--primary-color);
  margin: 20px 0 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--medium-gray);
}

.brain-profile {
  margin: 15px 0;
}

.profile-item {
  margin-bottom: 12px;
}

.profile-label {
  font-size: 14px;
  margin-bottom: 5px;
}

.profile-bar {
  height: 20px;
  background-color: var(--light-gray);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.profile-fill {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 10px;
}

.profile-item:nth-child(1) .profile-fill {
  background-color: var(--primary-color);
}

.profile-item:nth-child(2) .profile-fill {
  background-color: var(--primary-color);
}

.profile-item:nth-child(3) .profile-fill {
  background-color: var(--primary-color);
}

.profile-item:nth-child(4) .profile-fill {
  background-color: var(--primary-color);
}

.profile-bar span {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-size: 12px;
  font-weight: bold;
}

/* Characteristics */
.characteristics {
  margin: 15px 0;
}

.characteristic {
  margin-bottom: 15px;
}

.characteristic-row {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.characteristic-row span {
  font-size: 14px;
  width: 30%;
}

.characteristic-row span:last-child {
  width: 10%;
  text-align: right;
}

.characteristic-bar-container {
  flex-grow: 1;
  height: 15px;
  background-color: var(--light-gray);
  border-radius: 7.5px;
  margin: 0 10px;
  overflow: hidden;
}

.characteristic-bar {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 7.5px;
}

.characteristic-description {
  font-size: 12px;
  color: var(--dark-gray);
  padding-left: 30%;
  margin-left: 10px;
}

/* Feature List */
.feature-list {
  margin-left: 20px;
  margin-bottom: 15px;
}

.feature-list li {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--text-color);
}

/* Personality Traits */
.personality-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.trait {
  padding: 8px 15px;
  background-color: rgba(94, 59, 150, 0.1);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 14px;
}

/* Chart */
.chart-note {
  font-size: 12px;
  color: var(--dark-gray);
  font-style: italic;
  margin-bottom: 10px;
}

.allocation-list {
  margin: 15px 0;
}

.allocation-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background-color: var(--light-gray);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  --chevron-rotate: 0deg;
}

.allocation-item::after {
  content: '\F285';
  font-family: 'bootstrap-icons';
  margin-left: 10px;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  transform: rotate(var(--chevron-rotate));
}

.allocation-item:hover::after {
  transform: translateX(3px);
}

.allocation-detail {
  padding: 15px;
  background-color: rgba(94, 59, 150, 0.05);
  border-left: 3px solid var(--primary-color);
  border-radius: 8px;
  margin-bottom: 15px;
  margin-top: -8px;
  animation: slideDown 0.3s ease;
}

.allocation-detail p {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 10px;
  color: var(--text-color);
}

.allocation-detail strong {
  color: var(--primary-color);
}

.allocation-detail ul {
  margin-left: 20px;
  margin-top: 10px;
}

.allocation-detail li {
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 5px;
  color: var(--dark-gray);
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
    padding-top: 15px;
    padding-bottom: 15px;
  }
}

.allocation-label {
  font-size: 14px;
  color: var(--text-color);
}

.allocation-percentage {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
}

.partner-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 25px 0;
  padding: 20px 0;
}

.partner-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.partner-icon i {
  font-size: 36px;
  color: var(--primary-color);
}

.partner-icon span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
}

.pie-chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pie-chart {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
}

.pie-chart circle {
  cursor: pointer;
  transition: all 0.2s ease;
}

.pie-chart circle:not(:first-child):hover {
  stroke-width: 53px;
  opacity: 0.8;
}

.pie-chart circle:first-child {
  cursor: default;
}

.chart-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.legend-item {
  display: flex;
  align-items: center;
  font-size: 11px;
}

.color-box {
  width: 15px;
  height: 15px;
  margin-right: 5px;
  border-radius: 3px;
}

/* Bias */
.bias {
  margin-bottom: 15px;
}

.bias h4 {
  font-size: 14px;
  margin-bottom: 5px;
}

.bias p {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-color);
}

/* Decision Style */
.decision-style {
  margin-bottom: 20px;
}

.decision-style h4 {
  font-size: 14px;
  margin: 10px 0 5px;
}

.decision-style ul {
  margin-left: 20px;
}

.decision-style li {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 5px;
  color: var(--text-color);
}

/* Fund Details */
.fund-details {
  margin-top: 20px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  width: 100%;
}

.fund-details h4 {
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--secondary-color);
  text-align: center;
}

.fund-category {
  margin-bottom: 12px;
}

.fund-category h5 {
  font-size: 14px;
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.color-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
}

.fund-category ul {
  margin-left: 18px;
  font-size: 13px;
}

.fund-category li {
  margin-bottom: 3px;
}

.note {
  font-size: 12px;
  font-style: italic;
  color: var(--dark-gray);
  margin-top: 10px;
  text-align: center;
}

.close-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
}

.close-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: var(--accent-color);
  transform: scale(1.1);
}

.pie-chart:hover {
  cursor: pointer;
}

/* Demo Notification */
.demo-notification {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 350px;
  background-color: rgba(94, 59, 150, 0.95);
  color: white;
  padding: 15px;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: top 0.3s ease-in-out;
  text-align: center;
}

.demo-notification.show {
  top: 50px;
}

.demo-notification p {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.demo-notification p:last-of-type {
  font-weight: bold;
}

.close-notification {
  position: absolute;
  top: 5px;
  right: 5px;
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

/* Footer */
footer {
  position: sticky;
  bottom: 0;
  margin-top: 20px;
  padding-top: 10px;
  background-color: var(--white);
}