:root {
  /* Primary Colors */
  --primary: #54c8e8;
  --primary-dark: #083347;
  --primary-light: rgba(84, 200, 232, 0.153);
  --white: #ffffff;

  /* Secondary Colors */
  --secondary: #8ad7ed;
  --dark: #083347;
  --light: rgba(84, 200, 232, 0.05);
  --border: #e2e8f0;
  --text-primary: #083347;
  --text-secondary: #4a6e7d;
  --text-muted: #b2bec3;
  --success: #2ecc71;
  --danger: #e74c3c;
  --warning: #f39c12;
  --info: #54c8e8;

  /* Category Colors (neutral to hide category type) */
  --cat-a: #54c8e8;
  --cat-b: #54c8e8;
  --cat-c: #54c8e8;
  --cat-d: #54c8e8;

  /* Category Backgrounds */
  --cat-a-bg: rgba(84, 200, 232, 0.1);
  --cat-b-bg: rgba(84, 200, 232, 0.1);
  --cat-c-bg: rgba(84, 200, 232, 0.1);
  --cat-d-bg: rgba(84, 200, 232, 0.1);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(8, 51, 71, 0.05);
  --shadow-sm: 0 1px 3px rgba(8, 51, 71, 0.1);
  --shadow: 0 4px 6px rgba(8, 51, 71, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(8, 51, 71, 0.1),
    0 4px 6px -2px rgba(8, 51, 71, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(8, 51, 71, 0.1),
    0 10px 10px -5px rgba(8, 51, 71, 0.04);
  --shadow-inner: inset 0 2px 4px 0 rgba(8, 51, 71, 0.06);
  --shadow-outline: 0 0 0 3px rgba(84, 200, 232, 0.25);

  /* Border Radius */
  --radius-xs: 0.125rem;
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --easing-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --easing-accelerate: cubic-bezier(0.4, 0, 1, 1);
  --easing-decelerate: cubic-bezier(0, 0, 0.2, 1);

  /* Typography */
  --font-main: "Tajawal", sans-serif;

  /* Z-Index Layers */
  --z-background: -10;
  --z-normal: 1;
  --z-above: 10;
  --z-modal: 100;
  --z-toast: 200;
  --z-tooltip: 300;
  --z-overlay: 900;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--white);
  color: var(--text-primary);
  line-height: 1.6;
  direction: rtl;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

a:hover {
  color: var(--dark);
}

/* Grid System */
.container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
}

.col {
  flex: 1 1 0%;
  padding: 0 1rem;
}

/* Header - Modern & Clean */
.site-header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  padding: 1.5rem 0;
  text-align: center;
  position: relative;
  border-bottom: 4px solid var(--primary);
  z-index: var(--z-above);
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  max-width: 150px;
  height: auto;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* Main Content */
main {
  flex: 1;
  padding: 2rem 0;
  background-color: var(--primary-light);
  position: relative;
}

/* Card Styles */
.card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid rgba(84, 200, 232, 0.2);
  transform: translateZ(0);
  backface-visibility: hidden;
  position: relative;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px) translateZ(0);
}

.card-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.card-header::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  top: -100%;
  left: -100%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  opacity: 0.7;
}

.card-body {
  padding: 2rem;
}

.card-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  background-color: rgba(84, 200, 232, 0.05);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark);
}

.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
  transition: var(--transition);
}

        .form-control {
            width: 100%;
    padding: 1.2rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--dark);
    background-color: #e8f7fd;
    background-clip: padding-box;
    border: none;
    border-radius: 16px;
    transition: var(--transition);
        }

.form-control:focus {
  border-color: var(--primary);
  outline: 0;
  box-shadow: var(--shadow-outline);
}

.input-group {
  position: relative;
}

.input-group .form-control {
  padding-right: 2.5rem;
}

.input-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
}

/* Radio Group */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.radio-container {
  position: relative;
  flex: 1 1 0%;
  min-width: 120px;
}

.radio-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

        .radio-label {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            padding: 1.6rem;
            cursor: pointer;
            color: var(--text-secondary);
            font-weight: 500;
            background-color: var(--white);
            border: 2px solid var(--border);
            border-radius: 20px;
            transition: var(--transition);
            text-align: center;
            overflow: hidden;
        }

.radio-label:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.radio-label::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-light), transparent);
  opacity: 0;
  transition: var(--transition);
}

.radio-input:checked + .radio-label::before {
  opacity: 1;
}

.radio-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.radio-input:checked + .radio-label {
  border-color: var(--primary);
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
  box-shadow: 0 0 0 2px var(--primary);
}

.radio-input:checked + .radio-label .radio-icon {
  color: var(--primary);
  transform: scale(1.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 2px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
  z-index: -1;
}

.btn:hover::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }

  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

.btn:focus {
  outline: 0;
  box-shadow: var(--shadow-outline);
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
              border-radius: 30px;

}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(8, 51, 71, 0.15);
}

.btn-outline-primary {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(8, 51, 71, 0.15);
}

.btn-secondary {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(8, 51, 71, 0.15);
}

.btn-danger {
  background-color: var(--danger);
  border-color: var(--danger);
  color: var(--white);
}

.btn-danger:hover {
  background-color: #c0392b;
  border-color: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.15);
}

.btn-success {
  background-color: var(--success);
  border-color: var(--success);
  color: var(--white);
}

.btn-success:hover {
  background-color: #27ae60;
  border-color: #27ae60;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.15);
}

.btn-icon {
  margin-left: 0.5rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Progress Elements */
.progress-container {
  margin: 2rem 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark);
}

.progress-track {
  width: 100%;
  height: 0.75rem;
  background-color: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: var(--shadow-inner);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.2) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.2) 75%,
    transparent 75%,
    transparent
  );
  background-size: 16px 16px;
  animation: progressAnimation 1s linear infinite;
}

@keyframes progressAnimation {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 16px 0;
  }
}

/* Steps */
.steps {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--border), var(--border));
  transform: translateY(-50%);
  z-index: 0;
  border-radius: var(--radius-full);
}

.step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.step-circle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  border: 3px solid var(--border);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-secondary);
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.step-text {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  text-align: center;
  transition: var(--transition);
}

.step.active .step-circle {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 0 0 5px var(--primary-light), 0 8px 16px rgba(8, 51, 71, 0.2);
  transform: scale(1.1);
}

.step.active .step-text {
  color: var(--primary);
  font-weight: 600;
  transform: translateY(4px);
}

.step.completed .step-circle {
  background: linear-gradient(135deg, var(--success), #27ae60);
  border-color: var(--success);
  color: var(--white);
}

.step.completed .step-text {
  color: var(--success);
}

.step.completed::after {
  content: "";
  position: absolute;
  top: 3.5rem;
  left: 50%;
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.2);
}

/* Questions Styling */
.question-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.question-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border: 2px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  backface-visibility: hidden;
  z-index: 1;
}

.question-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light), transparent);
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.question-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px) translateZ(0);
  border-color: var(--primary);
}

.question-card:hover::before {
  opacity: 0.5;
}

.question-card.selected {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px) translateZ(0);
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.question-card.selected::before {
  opacity: 1;
}

.question-card.a-category.selected,
.question-card.b-category.selected,
.question-card.c-category.selected,
.question-card.d-category.selected {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.question-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.question-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 1.25rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.selected .question-icon {
  background-color: var(--primary);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(8, 51, 71, 0.15);
}

.a-category .question-icon,
.b-category .question-icon,
.c-category .question-icon,
.d-category .question-icon {
  background-color: var(--primary-light);
  color: var(--primary);
}

.question-text {
  font-weight: 500;
  color: var(--dark);
  font-size: 1.1rem;
  flex: 1;
}

.selected .question-text {
  font-weight: 600;
  color: var(--primary-dark);
}

.question-rating {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  transform: scale(0) rotate(-90deg);
  box-shadow: 0 4px 8px rgba(8, 51, 71, 0.15);
  z-index: 2;
}

.question-card.selected .question-rating {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.selected-badge {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow);
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  transform: scale(0) rotate(90deg);
  z-index: 2;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
}

.question-card.selected .selected-badge {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.question-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: var(--light);
  transform: none !important;
}

.question-card.disabled:hover {
  transform: none;
  box-shadow: var(--shadow);
  border-color: var(--border);
}

.question-card.previous-selection {
  border-left: 4px solid var(--primary);
  background-color: var(--primary-light);
  opacity: 0.8;
  cursor: default;
}

.question-card.previous-selection .question-rating {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Selection Info */
.selection-info {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.selection-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.selection-counter {
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Results Chart */
.result-chart {
  width: 100%;
  height: 300px;
  margin: 2rem 0;
  position: relative;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .result-grid {
    grid-template-columns: 1fr;
  }
}

.result-item {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.result-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.result-item.a-result,
.result-item.b-result,
.result-item.c-result,
.result-item.d-result {
  border-right: 4px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.result-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light), transparent 70%);
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}

.result-item:hover::before {
  opacity: 1;
}

.result-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.result-title-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: linear-gradient(
    135deg,
    var(--primary-light),
    rgba(84, 200, 232, 0.3)
  );
  color: var(--primary);
  box-shadow: 0 4px 8px rgba(8, 51, 71, 0.1);
}

.result-title-text {
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.result-score {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin: 1rem 0;
  color: var(--primary);
  text-shadow: 0 2px 4px rgba(8, 51, 71, 0.1);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.result-item:hover .result-score {
  transform: scale(1.1);
}

.result-bar {
  height: 0.75rem;
  background-color: rgba(226, 232, 240, 0.5);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-inner);
  z-index: 1;
}

.result-progress {
  height: 100%;
  border-radius: var(--radius-full);
  width: 0;
  transition: width 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  position: relative;
}

.result-progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0.1) 40%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: shine 2s infinite linear;
}

@keyframes shine {
  to {
    background-position: 200% 0;
  }
}

.result-description {
  margin-top: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Radar Chart */
.radar-chart {
  width: 100%;
  max-width: 500px;
  margin: 3rem auto;
  position: relative;
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.radar-chart::before {
  content: "توازن";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5rem;
  font-weight: 900;
  color: rgba(8, 51, 71, 0.03);
  z-index: 0;
  letter-spacing: 0.2rem;
}

.radar-container {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
}

.radar-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-circle {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed var(--border);
  transition: all 0.5s ease;
}

.radar-circle-1 {
  width: 25%;
  height: 25%;
  animation: pulseBg 5s infinite alternate;
}

.radar-circle-2 {
  width: 50%;
  height: 50%;
  animation: pulseBg 7s infinite alternate;
}

.radar-circle-3 {
  width: 75%;
  height: 75%;
  animation: pulseBg 9s infinite alternate;
}

.radar-circle-4 {
  width: 100%;
  height: 100%;
  animation: pulseBg 11s infinite alternate;
}

@keyframes pulseBg {
  0%,
  100% {
    border-color: rgba(84, 200, 232, 0.3);
  }

  50% {
    border-color: rgba(8, 51, 71, 0.2);
  }
}

.radar-axis {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 1.5px;
  background-color: rgba(84, 200, 232, 0.3);
  transform-origin: left center;
}

.radar-axis-a {
  transform: rotate(0deg);
}

.radar-axis-b {
  transform: rotate(90deg);
}

.radar-axis-c {
  transform: rotate(180deg);
}

.radar-axis-d {
  transform: rotate(270deg);
}

.radar-label {
  position: absolute;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  background-color: var(--white);
  box-shadow: var(--shadow);
  z-index: 5;
  transition: all 0.5s ease;
}

.radar-label-a {
  top: 1%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  color: var(--primary);
}

.radar-label-b {
  right: 1%;
  top: 50%;
  transform: translateX(50%) translateY(-50%);
  color: var(--primary);
}

.radar-label-c {
  bottom: 1%;
  left: 50%;
  transform: translateX(-50%) translateY(50%);
  color: var(--primary);
}

.radar-label-d {
  left: 1%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  color: var(--primary);
}

.radar-data {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
  background: rgba(84, 200, 232, 0.2);
  border: 2px solid var(--primary);
  transition: all 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 3;
}

.radar-data::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(84, 200, 232, 0.4), transparent);
  clip-path: inherit;
  z-index: -1;
}

.radar-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--white);
  border: 3px solid var(--primary);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 4;
  box-shadow: 0 0 0 4px rgba(84, 200, 232, 0.2), 0 4px 8px rgba(8, 51, 71, 0.1);
}

.radar-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Dominant Profile */
.dominant-profile {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.dominant-profile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(84, 200, 232, 0.1) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.dominant-profile-header {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: var(--shadow);
}

.dominant-profile-header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 40%
  );
  z-index: 0;
}

.dominant-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.dominant-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.dominant-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.dominant-subtitle {
  font-size: 0.95rem;
  opacity: 0.9;
}

.dominant-body {
  padding: 1.5rem 0;
  position: relative;
  z-index: 1;
}

.dominant-name {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  color: var(--primary-dark);
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0.5rem 0;
}

.dominant-name::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  border-radius: var(--radius-full);
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  transform-origin: center;
  animation: expand 2s ease-out forwards;
}

@keyframes expand {
  0% {
    transform: scaleX(0);
  }

  100% {
    transform: scaleX(1);
  }
}

.dominant-description {
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* Rating Badge - New */
.stage-rating-badge {
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  box-shadow: 0 10px 30px rgba(8, 51, 71, 0.2);
  z-index: 10;
  animation: pulse 2s infinite;
}

.stage-rating-badge::before {
  content: "";
  position: absolute;
  width: 110%;
  height: 110%;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.5);
  animation: rotate 10s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Traits Section */
.traits-section {
  background-color: var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.traits-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 70% 20%,
    rgba(255, 255, 255, 0.4) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.traits-title {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.traits-title-icon {
  color: var(--primary);
  font-size: 1.75rem;
  animation: pulse 2s infinite;
}

.traits-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}

.trait-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.2rem;
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border-right: 3px solid var(--primary);
}

.trait-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light), transparent 80%);
  opacity: 0;
  transition: var(--transition);
}

.trait-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.trait-item:hover::before {
  opacity: 1;
}

.trait-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  background-color: var(--primary-light);
  color: var(--primary);
  box-shadow: 0 4px 8px rgba(8, 51, 71, 0.1);
  transition: var(--transition);
}

.trait-item:hover .trait-icon {
  transform: scale(1.1);
  background-color: var(--primary);
  color: var(--white);
}

/* Modern Results Section */
.results-modern {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0;
  margin-bottom: 3rem;
  overflow: hidden;
  position: relative;
}

.results-header-modern {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 2rem;
  position: relative;
  text-align: center;
}

.results-header-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.7;
}

.results-title-modern {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  position: relative;
}

.results-subtitle-modern {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.results-body-modern {
  padding: 0;
}

.results-summary-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
}

.result-card-modern {
  padding: 2rem;
  background-color: var(--white);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.result-card-modern:hover {
  background-color: var(--primary-light);
  transform: translateY(-5px);
  z-index: 10;
  box-shadow: var(--shadow-lg);
}

.result-card-modern::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, var(--primary-light), transparent 80%);
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}

.result-card-modern:hover::before {
  opacity: 1;
}

.result-icon-modern {
  width: 4rem;
  height: 4rem;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.result-card-modern:hover .result-icon-modern {
  background-color: var(--primary);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(8, 51, 71, 0.15);
}

.result-title-modern {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.result-score-modern {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.result-card-modern:hover .result-score-modern {
  transform: scale(1.1);
  color: var(--primary-dark);
}

.result-score-modern::after {
  content: "%";
  font-size: 1.5rem;
  vertical-align: top;
  margin-right: 0.25rem;
  color: var(--text-secondary);
}

.result-bar-modern {
  height: 0.5rem;
  background-color: rgba(226, 232, 240, 0.5);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.result-progress-modern {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-full);
  transition: width 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.result-desc-modern {
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

/* Call to Action */
.cta-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 3rem;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  margin: 3.5rem 0;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.cta-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  pointer-events: none;
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 5%
    ),
    radial-gradient(
      circle at 50% 60%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 5%
    ),
    radial-gradient(
      circle at 80% 40%,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 5%
    );
  background-size: 80px 80px;
  animation: floatingBubbles 15s infinite linear;
}

@keyframes floatingBubbles {
  0% {
    background-position: 0% 0%;
  }

  100% {
    background-position: 100% 100%;
  }
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.cta-description {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  line-height: 1.7;
  max-width: 80%;
}

.cta-price {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 1.5rem 0;
  display: inline-block;
  position: relative;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.cta-price-label {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-right: 0.5rem;
  font-weight: 500;
}

.cta-features {
  margin: 2.5rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: var(--radius);
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cta-button {
  background-color: var(--white);
  color: var(--primary-dark);
  font-weight: 700;
  padding: 1.25rem 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-size: 1.1rem;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(84, 200, 232, 0) 0%,
    rgba(84, 200, 232, 0.1) 50%,
    rgba(84, 200, 232, 0) 100%
  );
  transform: translateX(-100%);
  z-index: -1;
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.cta-button:hover::before {
  animation: shine 1.5s infinite;
}

/* Alerts */
.alert {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  max-width: 350px;
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateX(calc(100% + 2rem));
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-right: 4px solid;
}

.alert.show {
  transform: translateX(0);
}

.alert-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.alert-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.25rem;
  align-self: flex-start;
  transition: var(--transition);
}

.alert-close:hover {
  color: var(--dark);
  transform: rotate(90deg);
}

.alert-success {
  border-color: var(--success);
}

.alert-success .alert-icon {
  background-color: rgba(46, 204, 113, 0.1);
  color: var(--success);
}

.alert-error {
  border-color: var(--danger);
}

.alert-error .alert-icon {
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--danger);
}

.alert-info {
  border-color: var(--info);
}

.alert-info .alert-icon {
  background-color: rgba(84, 200, 232, 0.1);
  color: var(--info);
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #085165a3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  backdrop-filter: blur(5px);
}

.loading-logo {
  margin-bottom: 2.5rem;
  animation: pulse 2s infinite;
}

.loading-logo img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 8px rgba(84, 200, 232, 0.2), 0 8px 24px rgba(0, 0, 0, 0.2);
}

.loading-text {
  color: var(--white);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(84, 200, 232, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Modal/Popup Styles */
.instruction-page {
  padding: 40px 20px;
  max-width: 900px;
  margin: 40px auto;
}

.modal {
  position: static;
  width: 100%;
  max-width: 100%;
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.modal-overlay.show .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 1.5rem 2rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  opacity: 0.6;
}

.modal-title {
  font-weight: 800;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.modal-subtitle {
  opacity: 0.9;
  font-size: 1.1rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 1;
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.modal-body {
  padding: 2rem;
  color: var(--text-primary);
}

.modal-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.modal-step {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--primary-light);
  border-radius: var(--radius);
  position: relative;
  transition: var(--transition);
}

.modal-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.modal-step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(8, 51, 71, 0.15);
}

.modal-step-content {
  flex: 1;
}

.modal-step-title {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.modal-step-desc {
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-rating-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.modal-rating-table th,
.modal-rating-table td {
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--border);
}

.modal-rating-table th {
  background-color: var(--primary);
  color: var(--white);
  font-weight: 700;
}

.modal-rating-table td {
  background-color: var(--white);
}

.modal-rating-table tr:hover td {
  background-color: var(--primary-light);
}

.modal-footer {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  background-color: rgba(84, 200, 232, 0.05);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Animations */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Results Section */
.results-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.results-header::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  border-radius: var(--radius-full);
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
}

.results-summary {
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.results-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 4px solid var(--primary);
}

.results-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light), transparent 70%);
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}

.results-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.results-card:hover::before {
  opacity: 1;
}

.results-card-header {
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.results-card-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-light),
    rgba(84, 200, 232, 0.3)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  margin: 0 auto 1rem;
  transition: var(--transition);
}

.results-card:hover .results-card-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 8px 16px rgba(8, 51, 71, 0.15);
}

.results-card-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.results-score {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary);
  text-shadow: 0 2px 4px rgba(8, 51, 71, 0.1);
  margin: 1rem 0;
  transition: var(--transition);
  position: relative;
  display: inline-block;
}

.results-score::after {
  content: "%";
  position: absolute;
  top: 0.5rem;
  right: -1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.results-card:hover .results-score {
  transform: scale(1.1);
}

.results-description {
  color: var(--text-secondary);
  margin-top: 1rem;
  line-height: 1.6;
}

/* Enhanced 3D Radar Chart */
.radar-chart-3d {
  position: relative;
  perspective: 1000px;
  transform-style: preserve-3d;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.radar-container-3d {
  transform: rotateX(30deg);
  transition: all 0.8s ease;
}

.radar-chart:hover .radar-container-3d {
  transform: rotateX(40deg) rotateZ(10deg);
}

.radar-circle-3d {
  box-shadow: 0 4px 20px rgba(8, 51, 71, 0.1);
  background-color: rgba(255, 255, 255, 0.1);
}

.radar-data-3d {
  box-shadow: 0 10px 30px rgba(8, 51, 71, 0.15);
}

/* Interactive Traits Section */
.traits-interactive {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.trait-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.trait-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.trait-card-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trait-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.trait-card-body {
  padding: 1.5rem;
}

.trait-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.trait-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.trait-list-item:last-child {
  border-bottom: none;
}

.trait-list-icon {
  color: var(--primary);
  font-size: 0.9rem;
}

/* Animation utility classes */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-15px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* Prism effect for header */
.prism-header {
  position: relative;
  overflow: hidden;
}

.prism-header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: prismShift 6s linear infinite;
}

@keyframes prismShift {
  0% {
    transform: rotate(25deg) translateX(-30%);
  }

  100% {
    transform: rotate(25deg) translateX(30%);
  }
}

/* Particle background for results */
.particle-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(84, 200, 232, 0.15);
  pointer-events: none;
  animation: float 8s infinite;
}

/* Confetti */
.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--primary);
  opacity: 0.8;
}

/* Responsive Utilities */
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.slide-up {
  animation: slideUp 0.5s ease forwards;
}

.fade-out {
  animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* Spacing utilities */
.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mt-5 {
  margin-top: 3rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

/* Flex & Alignment utilities */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.d-flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.flex-column {
  flex-direction: column;
}

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.gap-3 {
  gap: 1.5rem;
}

/* Animate.css compatibility classes */
.animate__animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.animate__fadeIn {
  animation-name: fadeIn;
}

.animate__fadeOut {
  animation-name: fadeOut;
}

.animate__fadeOutRight {
  animation-name: fadeOutRight;
}

.animate__fadeOutLeft {
  animation-name: fadeOutLeft;
}

.animate__fadeInLeft {
  animation-name: fadeInLeft;
}

.animate__fadeInRight {
  animation-name: fadeInRight;
}

.animate__pulse {
  animation-name: pulse;
}

.animate__headShake {
  animation-name: headShake;
}

.animate__rubberBand {
  animation-name: rubberBand;
}

.animate__heartBeat {
  animation-name: heartBeat;
}

.animate__bounceInRight {
  animation-name: bounceInRight;
}

.animate__bounceOutRight {
  animation-name: bounceOutRight;
}

.animate__delay-1s {
  animation-delay: 1s;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translate3d(-100%, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(100%, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeOutLeft {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: translate3d(-100%, 0, 0);
  }
}

@keyframes fadeOutRight {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: translate3d(100%, 0, 0);
  }
}

@keyframes headShake {
  0% {
    transform: translateX(0);
  }

  6.5% {
    transform: translateX(-6px) rotateY(-9deg);
  }

  18.5% {
    transform: translateX(5px) rotateY(7deg);
  }

  31.5% {
    transform: translateX(-3px) rotateY(-5deg);
  }

  43.5% {
    transform: translateX(2px) rotateY(3deg);
  }

  50% {
    transform: translateX(0);
  }
}

@keyframes rubberBand {
  0% {
    transform: scale3d(1, 1, 1);
  }

  30% {
    transform: scale3d(1.25, 0.75, 1);
  }

  40% {
    transform: scale3d(0.75, 1.25, 1);
  }

  50% {
    transform: scale3d(1.15, 0.85, 1);
  }

  65% {
    transform: scale3d(0.95, 1.05, 1);
  }

  75% {
    transform: scale3d(1.05, 0.95, 1);
  }

  100% {
    transform: scale3d(1, 1, 1);
  }
}

@keyframes heartBeat {
  0% {
    transform: scale(1);
  }

  14% {
    transform: scale(1.3);
  }

  28% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.3);
  }

  70% {
    transform: scale(1);
  }
}

@keyframes bounceInRight {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  from {
    opacity: 0;
    transform: translate3d(3000px, 0, 0) scaleX(3);
  }

  60% {
    opacity: 1;
    transform: translate3d(-25px, 0, 0) scaleX(1);
  }

  75% {
    transform: translate3d(10px, 0, 0) scaleX(0.98);
  }

  90% {
    transform: translate3d(-5px, 0, 0) scaleX(0.995);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes bounceOutRight {
  20% {
    opacity: 1;
    transform: translate3d(-20px, 0, 0) scaleX(0.9);
  }

  to {
    opacity: 0;
    transform: translate3d(2000px, 0, 0) scaleX(2);
  }
}

/* Media Queries */
@media (max-width: 1024px) {
  .result-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-features {
    grid-template-columns: 1fr;
  }

  .cta-description {
    max-width: 100%;
  }

  .cta-card {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .question-list {
    grid-template-columns: 1fr;
  }

  .steps {
    overflow-x: auto;
    padding-bottom: 1rem;
  }

  .step-text {
    display: none;
  }

  .card-footer {
    flex-direction: column;
  }

  .btn-block {
    width: 100%;
  }

  .traits-list {
    grid-template-columns: 1fr;
  }

  .results-summary {
    flex-direction: column;
    align-items: center;
  }

  .results-card {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .card-body,
  .card-header,
  .card-footer {
    padding: 1.25rem;
  }

  .btn {
    padding: 0.625rem 1.25rem;
  }

  .selection-info {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .radio-group {
    flex-direction: column;
  }

  .dominant-profile-header {
    flex-direction: column;
    text-align: center;
  }

  .cta-title {
    font-size: 1.5rem;
  }

  .cta-price {
    font-size: 2.5rem;
  }

  .traits-section {
    padding: 1.5rem;
  }
}

/* توزيع 5 عناصر كما في الصورة */
.compass-layout {
  display: grid;
  grid-template-columns: 1fr 300px 1fr;
  grid-template-rows: auto auto auto;
  gap: 30px;
  justify-items: center;
  align-items: center;
  margin-top: 40px;
}

/* صندوق النتيجة */
.compass-box {
  padding: 20px 35px;
  border-radius: 20px;
  text-align: right;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 600;
}

/* أماكن الصناديق */
.box-a {
  grid-column: 1;
  grid-row: 1;
  background: #2493c7;
  color: white;
}
.box-d {
  grid-column: 3;
  grid-row: 1;
  background: #2493c7;
  color: white;
}
.box-b {
  grid-column: 1;
  grid-row: 3;
  background: #2493c7;
  color: white;
}
.box-c {
  grid-column: 3;
  grid-row: 3;
  background: #2493c7;
  color: white;
}

/* البوصلة */
.compass-wrapper {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.compass-container {
  width: 300px;
  height: 300px;
  position: relative;
}

/* دوائر */
.circle {
  position: absolute;
  border-radius: 50%;
  border: 5px solid #003570;
}

.level-4 {
  width: 40%;
  height: 40%;
  top: 30%;
  left: 30%;
}
.level-1 {
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
}
.level-2 {
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
}
.level-3 {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

/* محاور */
.axis {
  position: absolute;
  width: 8px;
  height: 100%;
  background: #003570;
  left: 50%;
  transform-origin: center;
}

.axis-a {
  transform: translateX(-50%) rotate(0deg);
}
.axis-b {
  transform: translateX(-50%) rotate(90deg);
}
.axis-c {
  transform: translateX(-50%) rotate(180deg);
}
.axis-d {
  transform: translateX(-50%) rotate(270deg);
}

/* العقارب (أسهم وردية مثل الصورة) */
.arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 90px solid #ff008c;
  transform-origin: bottom center;
}

/* لكل نمط زاوية مبدئية */
.arrow-a {
  transform: translate(-50%, -100%) rotate(45deg);
}
.arrow-b {
  transform: translate(-50%, -100%) rotate(135deg);
}
.arrow-c {
  transform: translate(-50%, -100%) rotate(225deg);
}
.arrow-d {
  transform: translate(-50%, -100%) rotate(315deg);
}

/* البوصلة */
.compass-container {
  width: 300px;
  height: 300px;
  position: relative;
  transform-style: preserve-3d;
  perspective: 900px;
  animation: compass-tilt 4s infinite ease-in-out alternate;
}

/* 3D حركة خفيفة */
@keyframes compass-tilt {
  0% {
    transform: rotateX(8deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(8deg) rotateY(8deg);
  }
}

/* دوائر */
.circle {
  position: absolute;
  border-radius: 50%;
  border: 5px solid #003570;
  box-shadow: 0 0 15px #003570 inset;
  transform: translateZ(20px);
}

/* العقارب */
.arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 90px solid #ff008c;
  transform-origin: bottom center;

  /* انيميشن */
  transition: transform 1.2s ease-out;
  filter: drop-shadow(0 0 6px #ff4dbd);
}

/* زوايا افتراضية */
.arrow-a {
  transform: translate(-50%, -100%) rotate(0deg);
}
.arrow-b {
  transform: translate(-50%, -100%) rotate(90deg);
}
.arrow-c {
  transform: translate(-50%, -100%) rotate(180deg);
}
.arrow-d {
  transform: translate(-50%, -100%) rotate(270deg);
}

.arrow-dominant {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;

  /* حجم أكبر ووضوح أعلى */
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-bottom: 140px solid #ff0066; /* لون فاقع وواضح */

  transform-origin: bottom center;
  transition: transform 1.5s ease-out;

  /* توهج شديد وواضح */
  filter: drop-shadow(0 0 10px #ff1a8c) drop-shadow(0 0 18px #ff4dbd)
    drop-shadow(0 0 25px #ff80d4);

  z-index: 99999;
}

/* منطقة الفوتر */
.modern-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid #eee;
}

/* صندوق الـ checkbox */
.modern-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.modern-check input {
  display: none;
}

/* شكل مربع الاختيار */
.modern-check .custom-box {
  width: 24px;
  height: 24px;
  border: 2px solid #003570;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s;
  font-size: 14px;
  color: white;
  background: white;
}

/* عند تحديده */
.modern-check input:checked + .custom-box {
  background: #003570;
  border-color: #003570;
}

/* الأيقونة تظهر فقط عند التحديد */
.modern-check .custom-box i {
  opacity: 0;
  transition: 0.2s;
}

.modern-check input:checked + .custom-box i {
  opacity: 1;
}

.check-text {
  font-size: 1rem;
  color: #333;
}

/* زر البدء */
.start-btn {
  background: #003570;
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.25s;
}

.start-btn i {
  font-size: 1.2rem;
}

/* الزر المعطّل */
.start-btn.disabled {
  background: #99a8bd;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.6;
  transform: none;
}

/* مؤثر عند تفعيل الزر */
.start-btn:not(.disabled):hover {
  background: #0050a3;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
