
#mbti-widget-root {
  max-width: 720px;
  margin: 20px auto;
  font-family: inherit;
  direction: rtl;
}

.mbti-card {
  background: #111827;
  color: #e5e7eb;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid #1f2933;
}

.mbti-header h2 {
  font-size: 20px;
  margin: 0 0 10px;
  color: #f9fafb;
}

.mbti-progress {
  width: 100%;
  background: #1f2933;
  border-radius: 8px;
  overflow: hidden;
  height: 8px;
  margin-bottom: 6px;
}

.mbti-progress-bar {
  height: 8px;
  width: 0%;
  background: linear-gradient(90deg, #10b981, #3b82f6);
  transition: width 0.3s ease;
}

.mbti-progress-text {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 16px;
}

#mbti-question-text {
  font-size: 18px;
  margin-bottom: 18px;
  line-height: 1.6;
}

.mbti-scale {
  margin-bottom: 10px;
}

.mbti-scale-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 6px;
}

.mbti-scale-options {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.mbti-option {
  text-align: center;
}

.mbti-option input {
  display: none;
}

.mbti-option label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #4b5563;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #111827;
  color: #9ca3af;
}

.mbti-option input:checked + label {
  background: #10b981;
  color: #0b1120;
  border-color: #34d399;
  font-weight: 600;
}

.mbti-option label:hover {
  border-color: #9ca3af;
}

.mbti-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  gap: 10px;
}

.mbti-footer button {
  flex: 1;
  border-radius: 999px;
  padding: 10px 16px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

#mbti-prev {
  background: #111827;
  color: #e5e7eb;
  border: 1px solid #4b5563;
}

#mbti-prev:hover {
  background: #1f2937;
}

#mbti-next {
  background: linear-gradient(90deg, #10b981, #3b82f6);
  color: #0b1120;
  font-weight: 600;
}

#mbti-next:hover {
  filter: brightness(1.08);
}

.mbti-error {
  margin-top: 8px;
  font-size: 12px;
  color: #f87171;
  min-height: 16px;
}

.mbti-result {
  margin-top: 20px;
  padding: 22px;
  border-radius: 18px;
  background: #020617;
  color: #e5e7eb;
  border: 1px solid #1f2933;
}

.mbti-result h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 22px;
  color: #f9fafb;
}

.mbti-result-type {
  font-size: 16px;
  margin-bottom: 12px;
  color: #a5b4fc;
}

.mbti-result-tagline {
  font-size: 14px;
  margin-bottom: 14px;
  color: #6ee7b7;
}

.mbti-restart-btn {
  margin-top: 16px;
  border-radius: 999px;
  padding: 10px 18px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  background: #111827;
  color: #e5e7eb;
  border: 1px solid #4b5563;
  transition: all 0.2s ease;
}

.mbti-restart-btn:hover {
  background: #1f2937;
}

.hidden {
  display: none;
}

@media (max-width: 600px) {
  .mbti-card {
    padding: 16px;
  }
  #mbti-question-text {
    font-size: 16px;
  }
  .mbti-scale-options {
    gap: 4px;
  }
  .mbti-option label {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
}
